graphdb: pass context to IsClosedScid

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:46 +02:00
1 parent 4dcaf1c16a
commit 8722a96a4e
9 files changed
+22 -16

No files matched your search

+4 -4
View File
@@ -59,7 +59,7 @@ type GraphCloser interface {
PutClosedScid(context.Context, lnwire.ShortChannelID) error
// IsClosedScid checks if a short channel id is closed.
IsClosedScid(lnwire.ShortChannelID) (bool, error)
IsClosedScid(context.Context, lnwire.ShortChannelID) (bool, error)
}
// NodeInfoInquirier handles queries relating to specific nodes and channels
@@ -97,10 +97,10 @@ func (s *ScidCloserMan) PutClosedScid(ctx context.Context,
// IsClosedScid checks whether scid is closed so that the gossiper can ignore
// it.
func (s *ScidCloserMan) IsClosedScid(scid lnwire.ShortChannelID) (bool,
error) {
func (s *ScidCloserMan) IsClosedScid(ctx context.Context,
scid lnwire.ShortChannelID) (bool, error) {
return s.graph.IsClosedScid(scid)
return s.graph.IsClosedScid(ctx, scid)
}
// IsChannelPeer checks whether we have a channel with the peer.