Skip to content

Commit

Permalink
Fix dupe WatchEvent creation
Browse files Browse the repository at this point in the history
  • Loading branch information
analogue committed Mar 27, 2023
1 parent 7e34f99 commit 28caf48
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions agent/grpc-external/services/resource/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ func (s *Server) WatchList(req *pbresource.WatchListRequest, stream pbresource.R
continue
}

if err = stream.Send(&pbresource.WatchEvent{
Operation: event.Operation,
Resource: event.Resource,
}); err != nil {
if err = stream.Send(event); err != nil {
return err
}
}
Expand Down

0 comments on commit 28caf48

Please sign in to comment.