2
0
mirror of https://github.com/hibiken/asynq.git synced 2026-04-23 14:25:52 +08:00

Rename (*rdb).lrem to (*rdb).remove

This commit is contained in:
Ken Hibino
2019-11-27 20:05:31 -08:00
parent efaceb8a03
commit 1617278d86
3 changed files with 4 additions and 13 deletions

View File

@@ -80,7 +80,7 @@ func (p *processor) exec() {
// NOTE: This deferred anonymous function needs to take taskMessage as a value because
// the message can be mutated by the time this function is called.
defer func(msg taskMessage) {
if err := p.rdb.lrem(inProgress, &msg); err != nil {
if err := p.rdb.remove(inProgress, &msg); err != nil {
log.Printf("[ERROR] could not remove %+v from %q: %v\n", msg, inProgress, err)
}
<-p.sema // release token