Skip to content

Commit

Permalink
run RebalanceImmediately with goroutine (#1081)
Browse files Browse the repository at this point in the history
* seperate interface and implement

* fix panic when close tracedispatcher

* Restore rlog/log.go

* Delete default.go

* change RebalanceImmediately with goroutine
  • Loading branch information
wenxuwan authored Jul 24, 2023
1 parent 533de03 commit e22605a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion consumer/pull_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (pc *defaultPullConsumer) Start() error {
}
pc.client.CheckClientInBroker()
pc.client.SendHeartbeatToAllBrokerWithLock()
pc.client.RebalanceImmediately()
go pc.client.RebalanceImmediately()

return err
}
Expand Down
2 changes: 1 addition & 1 deletion consumer/push_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (pc *pushConsumer) Start() error {
}
pc.client.CheckClientInBroker()
pc.client.SendHeartbeatToAllBrokerWithLock()
pc.client.RebalanceImmediately()
go pc.client.RebalanceImmediately()

return err
}
Expand Down

0 comments on commit e22605a

Please sign in to comment.