Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Yashash H L <[email protected]>

Co-authored-by: Vigith Maurice <[email protected]>
  • Loading branch information
yhl25 and vigith authored Sep 26, 2024
1 parent ab1c9b4 commit dd9d84d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/sinker/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ func (fs *Service) SinkFn(stream sinkpb.Sink_SinkFnServer) error {
// Wait for the goroutines to finish
if err := g.Wait(); err != nil {
if errors.Is(err, io.EOF) {
log.Printf("Stopping the SinkFn")
return nil
}
log.Printf("Stopping the SinkFn with err, %s", err)
return err
}
}
Expand Down

0 comments on commit dd9d84d

Please sign in to comment.