mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-25 13:12:11 +02:00
graph/db: pass in ctx to test method
Fix compilation error.
This commit is contained in:
@@ -345,8 +345,9 @@ func (c chanSet) CountPolicies() int {
|
||||
// fetchAllChannelsAndPolicies retrieves all channels and their policies
|
||||
// from the given store and returns them sorted by their channel ID.
|
||||
func fetchAllChannelsAndPolicies(t *testing.T, store V1Store) chanSet {
|
||||
ctx := context.Background()
|
||||
channels := make(chanSet, 0)
|
||||
err := store.ForEachChannel(func(info *models.ChannelEdgeInfo,
|
||||
err := store.ForEachChannel(ctx, func(info *models.ChannelEdgeInfo,
|
||||
p1 *models.ChannelEdgePolicy,
|
||||
p2 *models.ChannelEdgePolicy) error {
|
||||
|
||||
|
Reference in New Issue
Block a user