Skip to content

Commit

Permalink
feat(agent): panic on error sendPong (#1426)
Browse files Browse the repository at this point in the history
Co-authored-by: David Ragot <david@formance.com>
  • Loading branch information
Dav-14 and David Ragot committed Apr 17, 2024
1 parent 5dc688a commit 9080e97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ee/agent/internal/membership_client.go
Expand Up @@ -100,6 +100,9 @@ func (c *membershipClient) sendPong(ctx context.Context) {
},
}); err != nil {
sharedlogging.FromContext(ctx).Errorf("Unable to send pong to server: %s", err)
if errors.Is(err, io.EOF) {
panic(err)
}
}
}

Expand Down

0 comments on commit 9080e97

Please sign in to comment.