From 7fafbbad4fee5afcc63490440705498e91a6f3d8 Mon Sep 17 00:00:00 2001 From: UnAfraid Date: Sun, 22 Oct 2023 16:04:26 +0300 Subject: [PATCH] Added missing context value to PeerStats --- pkg/api/internal/peer/peer_resolver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/internal/peer/peer_resolver.go b/pkg/api/internal/peer/peer_resolver.go index 4435314..c7af9f7 100644 --- a/pkg/api/internal/peer/peer_resolver.go +++ b/pkg/api/internal/peer/peer_resolver.go @@ -62,7 +62,7 @@ func (r *peerResolver) Stats(ctx context.Context, p *model.Peer) (*model.PeerSta return nil, nil } - stats, err := r.manageService.PeerStats(nil, server.Name, p.PublicKey) + stats, err := r.manageService.PeerStats(ctx, server.Name, p.PublicKey) if err != nil { return nil, err }