Skip to content

Commit a268da1

Browse files
committed
fix: initialise handlerMu in consumer (#169)
1 parent 8e18cd3 commit a268da1

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)