Skip to content

Commit

Permalink
consumer: backoffMtx and rdyRetryMtx don't read lock
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Mar 14, 2019
1 parent 0897cb2 commit cd1b94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ type Consumer struct {

needRDYRedistributed int32

backoffMtx sync.RWMutex
backoffMtx sync.Mutex

incomingMessages chan *Message

rdyRetryMtx sync.RWMutex
rdyRetryMtx sync.Mutex
rdyRetryTimers map[string]*time.Timer

pendingConnections map[string]*Conn
Expand Down

0 comments on commit cd1b94b

Please sign in to comment.