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