Browse Source

fix: consumer close before run

pull/159/head
Johannes Würbach 2 years ago
parent
commit
e564b431ff
No known key found for this signature in database GPG Key ID: 74DB0F4D956CCCE3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      consume.go

+ 2
- 0
consume.go View File

@ -131,6 +131,8 @@ func (consumer *Consumer) startGoroutines(
handler Handler,
options ConsumerOptions,
) error {
consumer.isClosedMux.Lock()
defer consumer.isClosedMux.Unlock()
err := consumer.chanManager.QosSafe(
options.QOSPrefetch,
0,


Loading…
Cancel
Save