Skip to content

Commit 6c514c4

Browse files
committed
docs: update comment
Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 67b63d5 commit 6c514c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

redis.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type Worker struct {
3737
stopFlag int32
3838
}
3939

40-
// WithAddr setup the addr of NSQ
40+
// WithAddr setup the addr of redis
4141
func WithAddr(addr string) Option {
4242
return func(w *Worker) {
4343
w.addr = addr
@@ -51,7 +51,7 @@ func WithDB(db int) Option {
5151
}
5252
}
5353

54-
// WithChannelSize redis password
54+
// WithChannelSize redis channel size
5555
func WithChannelSize(size int) Option {
5656
return func(w *Worker) {
5757
w.channelSize = size
@@ -65,14 +65,14 @@ func WithPassword(passwd string) Option {
6565
}
6666
}
6767

68-
// WithPassword redis password
68+
// WithConnectionString redis connection string
6969
func WithConnectionString(connectionString string) Option {
7070
return func(w *Worker) {
7171
w.connectionString = connectionString
7272
}
7373
}
7474

75-
// WithChannel setup the channel of NSQ
75+
// WithChannel setup the channel of redis
7676
func WithChannel(channel string) Option {
7777
return func(w *Worker) {
7878
w.channel = channel

0 commit comments

Comments
 (0)