chore(NSQ): update connect method to ConnectToNSQD

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2021-07-17 20:22:39 +08:00
parent 990085fee7
commit 87be86be08
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ func (s *Worker) BeforeRun() error {
func (s *Worker) AfterRun() error {
s.once.Do(func() {
time.Sleep(100 * time.Millisecond)
err := s.q.ConnectToNSQLookupd(s.addr)
err := s.q.ConnectToNSQD(s.addr)
if err != nil {
panic("Could not connect nsq server: " + err.Error())
}