graph/db+autopilot: remove NodeRTx FetchNode method
In this commit, we remove the need for the NodeRTx interface to have the FetchNode method on it.
This commit is contained in:
5 files changed
+1
-55
No files matched your search
+1
-6
@@ -98,15 +98,10 @@ func (d *dbNode) ForEachChannel(ctx context.Context,
|
||||
return nil
|
||||
}
|
||||
|
||||
node, err := d.tx.FetchNode(ep.ToNode)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
edge := ChannelEdge{
|
||||
ChanID: lnwire.NewShortChanIDFromInt(ep.ChannelID),
|
||||
Capacity: ei.Capacity,
|
||||
Peer: node.Node().PubKeyBytes,
|
||||
Peer: ep.ToNode,
|
||||
}
|
||||
|
||||
return cb(ctx, edge)
|
||||
|
||||
Reference in new issue
Block a user