Skip to content

Commit

Permalink
add ctx to optvalues
Browse files Browse the repository at this point in the history
  • Loading branch information
o-mago committed Feb 18, 2025
1 parent 8b120ca commit 66f9c95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/kgo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ func (cl *Client) OptValues(opt any) []any {
return []any{cfg.requireStable}
case namefn(SessionTimeout):
return []any{cfg.sessionTimeout}
case namefn(WithContext):
return []any{cfg.ctx}
default:
return nil
}
Expand Down

0 comments on commit 66f9c95

Please sign in to comment.