From 4855e68b3572134e78819cc20d8400ce9ee0d943 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Fri, 7 Jun 2024 15:07:27 +0000 Subject: [PATCH] don't log all the cancelled context errs (they are expected as we send in the bg) --- mixing/mixclient/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixing/mixclient/client.go b/mixing/mixclient/client.go index b95a84bef..22a71fc35 100644 --- a/mixing/mixclient/client.go +++ b/mixing/mixclient/client.go @@ -1754,7 +1754,7 @@ func (c *Client) roots(ctx context.Context, seenSRs []chainhash.Hash, err := c.sendLocalPeerMsgs(ctx, sesRun, func(p *peer) mixing.Message { return p.fp }) - if err != nil { + if ctx.Err() == nil && err != nil { c.logf("%v", err) } publishedRoots <- struct{}{}