Skip to content

Commit

Permalink
Fix typos in Redis broker (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
charleswhchan authored May 19, 2020
1 parent 4a1b518 commit 0bdd8fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions v1/brokers/redis/goredis.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewGR(cnf *config.Config, addrs []string, db int) iface.Broker {
var password string
parts := strings.Split(addrs[0], "@")
if len(parts) == 2 {
// with passwrod
// with password
password = parts[0]
addrs[0] = parts[1]
}
Expand Down Expand Up @@ -301,7 +301,7 @@ func (b *BrokerGR) consumeOne(delivery []byte, taskProcessor iface.TaskProcessor
// If the task is not registered, we requeue it,
// there might be different workers for processing specific tasks
if !b.IsTaskRegistered(signature.Name) {
log.INFO.Printf("Task not registered with this worker. Requeing message: %s", delivery)
log.INFO.Printf("Task not registered with this worker. Requeuing message: %s", delivery)

b.rclient.RPush(getQueueGR(b.GetConfig(), taskProcessor), delivery)
return nil
Expand Down
2 changes: 1 addition & 1 deletion v1/brokers/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func (b *Broker) consumeOne(delivery []byte, taskProcessor iface.TaskProcessor)
if signature.IgnoreWhenTaskNotRegistered {
return nil
}
log.INFO.Printf("Task not registered with this worker. Requeing message: %s", delivery)
log.INFO.Printf("Task not registered with this worker. Requeuing message: %s", delivery)

conn := b.open()
defer conn.Close()
Expand Down

0 comments on commit 0bdd8fa

Please sign in to comment.