Skip to content

Commit

Permalink
chore: update sideinput example (#150)
Browse files Browse the repository at this point in the history
Signed-off-by: Yashash H L <[email protected]>
  • Loading branch information
yhl25 authored Sep 22, 2024
1 parent cdacf88 commit 232ccc9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ func (s *SimpleSource) Read(_ context.Context, readRequest sourcesdk.ReadRequest
}

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

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

0 comments on commit 232ccc9

Please sign in to comment.