Skip to content

Commit 5ffaa9b

Browse files
committed
fix vet
1 parent e17e3e5 commit 5ffaa9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/task/queue_redis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func NewRedisQueue(addrs string, password string, dbIdx int) (*RedisQueue, error
8282
return &queue, nil
8383
}
8484

85+
// Run starts to run the queue
8586
func (r *RedisQueue) Run() error {
8687
for {
8788
bs, err := r.client.LPop(r.queueName).Bytes()
@@ -106,7 +107,6 @@ func (r *RedisQueue) Run() error {
106107

107108
time.Sleep(time.Millisecond * 100)
108109
}
109-
return nil
110110
}
111111

112112
// Push implements Queue

0 commit comments

Comments
 (0)