Skip to content

Commit

Permalink
refactor: remove extra timeout param (#67)
Browse files Browse the repository at this point in the history
Change-Id: I9d5d544808a6f739d79776a4f154d7caceaa133c

remove extra timeout param on UnackedMessageTracker#handlerCmd
  • Loading branch information
xujianhai666 authored and wolfstudy committed Oct 8, 2019
1 parent 702405f commit 6138893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulsar/unackedMsgTracker.go
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ func (t *UnackedMessageTracker) Start(ackTimeoutMillis int64) {
defer t.cmu.Unlock() defer t.cmu.Unlock()
t.timeout = time.NewTicker((time.Duration(ackTimeoutMillis)) * time.Millisecond) t.timeout = time.NewTicker((time.Duration(ackTimeoutMillis)) * time.Millisecond)


go t.handlerCmd(ackTimeoutMillis) go t.handlerCmd()
} }


func (t *UnackedMessageTracker) handlerCmd(ackTimeoutMillis int64) { func (t *UnackedMessageTracker) handlerCmd() {
for { for {
select { select {
case tick := <-t.timeout.C: case tick := <-t.timeout.C:
Expand Down

0 comments on commit 6138893

Please sign in to comment.