Skip to content

Commit

Permalink
chore: update side input example (#164)
Browse files Browse the repository at this point in the history
Signed-off-by: Yashash H L <[email protected]>
  • Loading branch information
yhl25 authored Oct 30, 2024
1 parent 7ec3f2c commit 8f4062f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ func (s *SimpleSource) Read(_ context.Context, readRequest sourcesdk.ReadRequest
}

func (s *SimpleSource) Ack(_ context.Context, request sourcesdk.AckRequest) {
delete(s.toAckSet, deserializeOffset(request.Offset().Value()))
for _, offset := range request.Offsets() {
delete(s.toAckSet, deserializeOffset(offset.Value()))
}
}

func (s *SimpleSource) Partitions(_ context.Context) []int32 {
Expand Down

0 comments on commit 8f4062f

Please sign in to comment.