Skip to content

Commit 30091f4

Browse files
committed
discovery: remove one forgotten context.TODO from discovery
1 parent 7b6319a commit 30091f4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

discovery/bootstrapper.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,10 @@ func NewGraphBootstrapper(cg autopilot.ChannelGraph) (NetworkPeerBootstrapper, e
157157
// many valid peer addresses to return.
158158
//
159159
// NOTE: Part of the NetworkPeerBootstrapper interface.
160-
func (c *ChannelGraphBootstrapper) SampleNodeAddrs(_ context.Context,
160+
func (c *ChannelGraphBootstrapper) SampleNodeAddrs(ctx context.Context,
161161
numAddrs uint32,
162162
ignore map[autopilot.NodeID]struct{}) ([]*lnwire.NetAddress, error) {
163163

164-
ctx := context.TODO()
165-
166164
// We'll merge the ignore map with our currently selected map in order
167165
// to ensure we don't return any duplicate nodes.
168166
for n := range ignore {

0 commit comments

Comments
 (0)