Skip to content

Commit

Permalink
fix tests and remove defaults of nsqlookupd and nsqd
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisibrahimd committed Oct 29, 2022
1 parent 26ec4a2 commit 09562b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/platform/util/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestGenerateWorkerCfg(t *testing.T) {
ClientSSLKey string `default:""`
ClientSSLCert string `default:""`
ConcurrentHandlers int `default:"200"`
NSQLookupd []string `default:"[\"nsqlookupd:4161\"]"`
NSQLookupd []string `default:"[\"\"]"`
ConsumerNSQDPool []string `default:"[\"\"]"`
}{}}}, info: worker.Info{Topic: "ping", Label: "internal"}},
wantWorkerCfg: config.StaticConfig{Queue: queueing.Config{Use: "nsq", NSQ: struct {
Expand All @@ -43,7 +43,7 @@ func TestGenerateWorkerCfg(t *testing.T) {
ClientSSLKey string `default:""`
ClientSSLCert string `default:""`
ConcurrentHandlers int `default:"200"`
NSQLookupd []string `default:"[\"nsqlookupd:4161\"]"`
NSQLookupd []string `default:"[\"\"]"`
ConsumerNSQDPool []string `default:"[\"\"]"`
}{Topic: "ping"}}},
wantErr: false},
Expand Down
4 changes: 2 additions & 2 deletions pkg/queue/queueing/queueing.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ type Config struct {
ClientSSLKey string `default:""`
ClientSSLCert string `default:""`
ConcurrentHandlers int `default:"200"`
NSQLookupd []string `default:"[]"`
ConsumerNSQDPool []string `default:"[\"\"]"` // "[\"nsqd:4150\"]"`
NSQLookupd []string `default:"[\"\"]"` // "[\"nsqlookupd:4160\"]"
ConsumerNSQDPool []string `default:"[\"\"]"` // "[\"nsqd:4150\"]"
}
}

Expand Down

0 comments on commit 09562b0

Please sign in to comment.