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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user