discovery: add comments to the ctx creation

We highlight why we do not use the returned cancel method of the
context guard.
This commit is contained in:
ziggie
2025-06-03 20:41:38 +02:00
parent af47604cc3
commit 45ebb9b900
2 changed files with 4 additions and 0 deletions

View File

@@ -4127,6 +4127,8 @@ func (p *Brontide) startRbfChanCloser(shutdown shutdownInit,
defer rbfCloser.RemoveStateSub(coopCloseStates)
}
// We do not call the cancel function here, because the global
// context quit method is enough to clean up the context guard.
ctx, _ := p.cg.Create(context.Background())
feeRate := defaultFeePerKw.FeePerVByte()