Skip to content

Commit

Permalink
style:fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
HobbyBear committed Sep 22, 2021
1 parent 7f4d80a commit 2ccbe75
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions offset_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,23 +250,19 @@ func (om *offsetManager) Commit() {
}

func (om *offsetManager) flushToBroker() {

var (
attempt int
)

for {
req := om.constructRequest()
if req == nil {
return
}

broker, err := om.coordinator()
if err != nil {
om.handleError(err)
return
}

resp, err := broker.CommitOffset(req)
if err != nil {
om.handleError(err)
Expand All @@ -282,7 +278,6 @@ func (om *offsetManager) flushToBroker() {
om.handleResponse(broker, req, resp)
return
}

}

func (om *offsetManager) shouldRetry(resp *OffsetCommitResponse, attempt int) bool {
Expand Down

0 comments on commit 2ccbe75

Please sign in to comment.