Browse Source

don't caer about nil contexts

pull/168/head
wagslane 1 year ago
parent
commit
5546631dfc
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      consume.go

+ 1
- 3
consume.go View File

@ -259,9 +259,7 @@ func handlerGoroutine(consumer *Consumer, msgs <-chan amqp.Delivery, consumeOpti
}
func (consumer *Consumer) waitForHandlerCompletion(ctx context.Context) error {
if ctx == nil {
ctx = context.Background()
} else if ctx.Err() != nil {
if ctx.Err() != nil {
return ctx.Err()
}
c := make(chan struct{})


Loading…
Cancel
Save