chore(NSQ): update connect method to ConnectToNSQD
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
990085fee7
commit
87be86be08
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue