fix log typo

This commit is contained in:
namhq1989 2022-12-15 21:23:28 +07:00
parent fdcdad6b6d
commit 92b0b45ec7
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ func (js JetStream) Subscribe(subject string, cb nats.MsgHandler) (*nats.Subscri
}
if js.cfg.Debug {
fmt.Printf("[natsio.JetStream] subscribe new message from subject #%s \n", subject)
fmt.Printf("[natsio.JetStream] subscribe to subject #%s \n", subject)
}
return sub, nil
@ -52,7 +52,7 @@ func (js JetStream) PullSubscribe(subject, consumer string) (*nats.Subscription,
}
if js.cfg.Debug {
fmt.Printf("[natsio.JetStream] pull subscribe new message from subject #%s \n", subject)
fmt.Printf("[natsio.JetStream] pull subscribe to subject #%s \n", subject)
}
return sub, nil

View File

@ -16,7 +16,7 @@ func (js JetStream) QueueSubscribe(subject, queueName string, cb nats.MsgHandler
}
if js.cfg.Debug {
fmt.Printf("[natsio.JetStream] queue subscribe new message from subject #%s \n", subject)
fmt.Printf("[natsio.JetStream] queue subscribe to subject #%s \n", subject)
}
return nil