graph/db: unexport various methods that expose kvdb.RTx

Unexport the KVStore `FetchOtherNode` and `ForEachNodeChannelTx` methods
so that fewer exposed methods are leaking implementation details.
This commit is contained in:
Elle Mouton committed 2025-05-22 14:14:39 +02:00
1 parent 42e87396ec
commit ea4b8c30a4
2 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -1219,7 +1219,7 @@ func TestGraphTraversalCacheable(t *testing.T) {
err = graph.db.View(func(tx kvdb.RTx) error {
for _, node := range nodes {
err := graph.ForEachNodeChannelTx(tx, node,
err := graph.forEachNodeChannelTx(tx, node,
func(tx kvdb.RTx, info *models.ChannelEdgeInfo,
policy *models.ChannelEdgePolicy,
policy2 *models.ChannelEdgePolicy) error { //nolint:ll