graph/db: refactor makeZombiePubkeys

Let the helper method only take the params it needs so that we dont need
to construct an entire models.ChannelEdgeInfo object to pass to it. This
will be useful later on.
This commit is contained in:
Elle Mouton committed 2025-08-07 08:04:20 +02:00
1 parent 4cc5cfef2a
commit f51adaf31f
2 files changed
+9 -7

No files matched your search

+2 -1
View File
@@ -1680,7 +1680,8 @@ func (s *SQLStore) DeleteChannelEdges(strictZombiePruning, markZombie bool,
}
nodeKey1, nodeKey2 = makeZombiePubkeys(
info, e1UpdateTime, e2UpdateTime,
info.NodeKey1Bytes, info.NodeKey2Bytes,
e1UpdateTime, e2UpdateTime,
)
}