Skip to content

Commit

Permalink
fix(queue): pop from inRoutes if supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Jun 24, 2024
1 parent 4fd820a commit 9da3908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue/redis/pop.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (c *client) Pop(ctx context.Context, inRoutes []string) (*models.Item, erro
var routes []string

// if routes were supplied, use those
if len(routes) > 0 {
if len(inRoutes) > 0 {
routes = inRoutes
} else {
routes = c.GetRoutes()
Expand Down

0 comments on commit 9da3908

Please sign in to comment.