Skip to content

Commit 9452c0b

Browse files
committed
graph/db: detach getChannelMap from KVStore
1 parent 8660f76 commit 9452c0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graph/db/kv_store.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func (c channelMapKey) String() string {
246246

247247
// getChannelMap loads all channel edge policies from the database and stores
248248
// them in a map.
249-
func (c *KVStore) getChannelMap(edges kvdb.RBucket) (
249+
func getChannelMap(edges kvdb.RBucket) (
250250
map[channelMapKey]*models.ChannelEdgePolicy, error) {
251251

252252
// Create a map to store all channel edge policies.
@@ -415,7 +415,7 @@ func (c *KVStore) ForEachChannel(cb func(*models.ChannelEdgeInfo,
415415

416416
// First, load all edges in memory indexed by node and channel
417417
// id.
418-
channelMap, err := c.getChannelMap(edges)
418+
channelMap, err := getChannelMap(edges)
419419
if err != nil {
420420
return err
421421
}
@@ -479,7 +479,7 @@ func (c *KVStore) ForEachChannelCacheable(cb func(*models.CachedEdgeInfo,
479479

480480
// First, load all edges in memory indexed by node and channel
481481
// id.
482-
channelMap, err := c.getChannelMap(edges)
482+
channelMap, err := getChannelMap(edges)
483483
if err != nil {
484484
return err
485485
}

0 commit comments

Comments
 (0)