File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ type Worker struct {
37
37
stopFlag int32
38
38
}
39
39
40
- // WithAddr setup the addr of NSQ
40
+ // WithAddr setup the addr of redis
41
41
func WithAddr (addr string ) Option {
42
42
return func (w * Worker ) {
43
43
w .addr = addr
@@ -51,7 +51,7 @@ func WithDB(db int) Option {
51
51
}
52
52
}
53
53
54
- // WithChannelSize redis password
54
+ // WithChannelSize redis channel size
55
55
func WithChannelSize (size int ) Option {
56
56
return func (w * Worker ) {
57
57
w .channelSize = size
@@ -65,14 +65,14 @@ func WithPassword(passwd string) Option {
65
65
}
66
66
}
67
67
68
- // WithPassword redis password
68
+ // WithConnectionString redis connection string
69
69
func WithConnectionString (connectionString string ) Option {
70
70
return func (w * Worker ) {
71
71
w .connectionString = connectionString
72
72
}
73
73
}
74
74
75
- // WithChannel setup the channel of NSQ
75
+ // WithChannel setup the channel of redis
76
76
func WithChannel (channel string ) Option {
77
77
return func (w * Worker ) {
78
78
w .channel = channel
You can’t perform that action at this time.
0 commit comments