mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
autopilot: continue threading context
Remove one context.TODO and add one more.
This commit is contained in:
@@ -169,8 +169,8 @@ func betweennessCentrality(g *SimpleGraph, s int, centrality []float64) {
|
||||
}
|
||||
|
||||
// Refresh recalculates and stores centrality values.
|
||||
func (bc *BetweennessCentrality) Refresh(graph ChannelGraph) error {
|
||||
ctx := context.TODO()
|
||||
func (bc *BetweennessCentrality) Refresh(ctx context.Context,
|
||||
graph ChannelGraph) error {
|
||||
|
||||
cache, err := NewSimpleGraph(ctx, graph)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user