Skip to content

Commit 6574634

Browse files
committed
refactor: change "kafka" in comments to "nsq"
1 parent 685b62a commit 6574634

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/broadcast/nsqclient.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// NSQClient connects to a NSQ server in order to provide it with certificates.
1111
type NSQClient struct {
12-
conn *nsq.Producer // Kafka connection
12+
conn *nsq.Producer // nsq connection
1313
addr string
1414
topic string
1515
isConnected bool
@@ -60,12 +60,12 @@ func NewNSQClient(subType SubscriptionType, addr, name, topic string, certBuffer
6060
return nsqc
6161
}
6262

63-
// reconnectHandler is a background job that attempts to reconnect to the Kafka server if the connection is lost.
63+
// reconnectHandler is a background job that attempts to reconnect to the NSQ server if the connection is lost.
6464
func (c *NSQClient) reconnectHandler() {
6565
for {
6666
select {
6767
case <-c.stopChan:
68-
log.Println("Stopping reconnectHandler for kafka producer:", c.addr)
68+
log.Println("Stopping reconnectHandler for nsq producer:", c.addr)
6969
return
7070
default:
7171
if c.isConnected {

0 commit comments

Comments
 (0)