graph/db: simplify GraphCache.UpdatePolicy signature

Remove the redundant "edge2" param and rather use the "policy" param to
derive the boolean.
This commit is contained in:
Elle Mouton committed 2025-06-10 20:10:35 +02:00
1 parent 2e716bf301
commit 0816645328
2 files changed
+8 -13

No files matched your search

+1 -6
View File
@@ -566,12 +566,7 @@ func (c *ChannelGraph) UpdateEdgePolicy(edge *models.ChannelEdgePolicy,
}
if c.graphCache != nil {
var isUpdate1 bool
if edge.ChannelFlags&lnwire.ChanUpdateDirection == 0 {
isUpdate1 = true
}
c.graphCache.UpdatePolicy(edge, from, to, isUpdate1)
c.graphCache.UpdatePolicy(edge, from, to)
}
select {