Skip to content

Commit

Permalink
Merge pull request #760 from twmb/753
Browse files Browse the repository at this point in the history
kgo: add AllowRebalance and CloseAllowingRebalance to GroupTransactSession
  • Loading branch information
twmb authored Oct 15, 2024
2 parents a6d66a9 + 4affe8e commit fd084a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/kgo/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,18 @@ func (s *GroupTransactSession) Close() {
s.cl.Close()
}

// AllowRebalance is a wrapper around Client.AllowRebalance, with the exact
// same semantics. Refer to that function's documentation.
func (s *GroupTransactSession) AllowRebalance() {
s.cl.AllowRebalance()
}

// CloseAllowingRebalance is a wrapper around Client.CloseAllowingRebalance,
// with the exact same semantics. Refer to that function's documentation.
func (s *GroupTransactSession) CloseAllowingRebalance() {
s.cl.CloseAllowingRebalance()
}

// PollFetches is a wrapper around Client.PollFetches, with the exact same
// semantics. Refer to that function's documentation.
//
Expand Down

0 comments on commit fd084a5

Please sign in to comment.