Skip to content

Commit

Permalink
No need for promise
Browse files Browse the repository at this point in the history
  • Loading branch information
toby committed Sep 1, 2022
1 parent 11f9f49 commit 1a1a517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/kgo/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ type HookGroupManageError interface {
//////////

type HookProduce interface {
OnProduce(ctx context.Context, r *Record, promise func(*Record, error))
OnProduce(ctx context.Context, r *Record)
}

///////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion pkg/kgo/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func (cl *Client) produce(
p := &cl.producer
if p.hooks != nil {
for _, h := range p.hooks.onProduce {
h.OnProduce(ctx, r, promise)
h.OnProduce(ctx, r)
}
}

Expand Down

0 comments on commit 1a1a517

Please sign in to comment.