Skip to content

Commit

Permalink
[cmd/opampsupervisor] ensure OnConnectClosed is hooked up
Browse files Browse the repository at this point in the history
OnConnectionClose was never hooked up to the server's OnConnectionClose, causing the restart of the agent to never be able to reconnect.

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
codeboten committed Feb 6, 2025
1 parent 19bc7d6 commit 07ca4e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/opampsupervisor/supervisor/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func (fs flattenedSettings) OnConnecting(request *http.Request) serverTypes.Conn
return serverTypes.ConnectionResponse{
Accept: true,
ConnectionCallbacks: serverTypes.ConnectionCallbacks{
OnMessage: fs.OnMessage,
OnMessage: fs.OnMessage,
OnConnectionClose: fs.OnConnectionClose,
},
}
}
Expand Down

0 comments on commit 07ca4e4

Please sign in to comment.