Commit b0dd2c62 authored by vicotor's avatar vicotor

fix bug

parent 36c11520
......@@ -353,7 +353,7 @@ func (c *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim saram
}
func (n *Node) addWorkerBack(w Worker) {
n.rdb.LPush(context.Background(), config.WORKER_QUEUE_PREFIX+strconv.Itoa(w.priority), workerId(w))
n.rdb.RPush(context.Background(), config.WORKER_QUEUE_PREFIX+strconv.Itoa(w.priority), workerId(w))
log.WithField("worker", w.workerid).Debug("add worker back to queue")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment