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:
2 files changed
+8
-13
No files matched your search
+1
-6
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user