File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -1555,18 +1555,6 @@ func (b *Builder) FetchLightningNode(
1555
1555
return b .cfg .Graph .FetchLightningNode (node )
1556
1556
}
1557
1557
1558
- // ForEachNode is used to iterate over every node in router topology.
1559
- //
1560
- // NOTE: This method is part of the ChannelGraphSource interface.
1561
- func (b * Builder ) ForEachNode (
1562
- cb func (* models.LightningNode ) error ) error {
1563
-
1564
- return b .cfg .Graph .ForEachNode (
1565
- func (_ kvdb.RTx , n * models.LightningNode ) error {
1566
- return cb (n )
1567
- })
1568
- }
1569
-
1570
1558
// ForAllOutgoingChannels is used to iterate over all outgoing channels owned by
1571
1559
// the router.
1572
1560
//
Original file line number Diff line number Diff line change @@ -85,9 +85,6 @@ type ChannelGraphSource interface {
85
85
// public key. channeldb.ErrGraphNodeNotFound is returned if the node
86
86
// doesn't exist within the graph.
87
87
FetchLightningNode (route.Vertex ) (* models.LightningNode , error )
88
-
89
- // ForEachNode is used to iterate over every node in the known graph.
90
- ForEachNode (func (node * models.LightningNode ) error ) error
91
88
}
92
89
93
90
// DB is an interface describing a persisted Lightning Network graph.
@@ -241,12 +238,6 @@ type DB interface {
241
238
FetchLightningNode (nodePub route.Vertex ) (* models.LightningNode ,
242
239
error )
243
240
244
- // ForEachNode iterates through all the stored vertices/nodes in the
245
- // graph, executing the passed callback with each node encountered. If
246
- // the callback returns an error, then the transaction is aborted and
247
- // the iteration stops early.
248
- ForEachNode (cb func (kvdb.RTx , * models.LightningNode ) error ) error
249
-
250
241
// ForEachNodeChannel iterates through all channels of the given node,
251
242
// executing the passed callback with an edge info structure and the
252
243
// policies of each end of the channel. The first edge policy is the
You can’t perform that action at this time.
0 commit comments