Skip to content

Commit ef6a380

Browse files
authored
Merge pull request #170 from astromechza/fix-169
fix: initialise handlerMu in consumer (#169)
2 parents 8e18cd3 + a268da1 commit ef6a380

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

consume.go

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ func NewConsumer(
7373
reconnectErrCh: reconnectErrCh,
7474
closeConnectionToManagerCh: closeCh,
7575
options: *options,
76+
handlerMu: &sync.RWMutex{},
7677
isClosedMu: &sync.RWMutex{},
7778
isClosed: false,
7879
}

0 commit comments

Comments
 (0)