CreateShards: only default Addr setting in the client.NewHTTPClient initialization
nitr0dv opened this issue · comments
Dmitry commented
You have such initialization of the client.NewHTTPClient object
func (migrationData *MigrationData) CreateShards() error {
c, _ := client.NewHTTPClient(client.HTTPConfig{
Addr: "http://localhost:8086",
})
I think that you need to rewrite it like this to use command line settings for the host and port if they were defined
func (migrationData *MigrationData) CreateShards() error {
c, _ := client.NewHTTPClient(client.HTTPConfig{
Addr: migrationData.host + ":" + migrationData.port,
})
Uttam Gandhi commented
Thanks for reporting this
#11