use single latest message buf

This commit is contained in:
Pascal Fischer
2025-10-08 17:23:28 +02:00
parent e5f926fa6d
commit ca46fe215a
2 changed files with 116 additions and 59 deletions

View File

@@ -86,7 +86,7 @@ func NewServer(
if appMetrics != nil {
// update gauge based on number of connected peers which is equal to open gRPC streams
err = appMetrics.GRPCMetrics().RegisterConnectedStreams(func() int64 {
return int64(len(peersUpdateManager.peerChannels))
return int64(peersUpdateManager.GetChannelCount())
})
if err != nil {
return nil, err