Skip to content

Commit b5c290d

Browse files
authored
Merge pull request #10116 from ellemouton/graphPerf4
[3] graph/db: batch-fetch channel & policy data
2 parents 23dd01c + c1ba7a9 commit b5c290d

File tree

5 files changed

+442
-220
lines changed

5 files changed

+442
-220
lines changed

graph/db/sql_migration.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,7 @@ func getAndBuildChanAndPolicies(ctx context.Context, db SQLQueries,
713713
}
714714

715715
edge, err := getAndBuildEdgeInfo(
716-
ctx, db, chain, row.GraphChannel.ID, row.GraphChannel, node1,
717-
node2,
716+
ctx, db, chain, row.GraphChannel, node1, node2,
718717
)
719718
if err != nil {
720719
return nil, nil, nil, fmt.Errorf("unable to build channel "+

0 commit comments

Comments
 (0)