routing+routerrpc: add capacity in rpcs

FetchPairCapacity is used by the following endpoints to introduce the
capacity for probability calculations:

* QueryProbability
* QueryRoutes
This commit is contained in:
bitromortac committed 2022-12-12 13:22:29 +01:00
1 parent 66ffc64776
commit 454c115b6e
9 files changed
+117 -34

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ func (m *SessionSource) getRoutingGraph() (routingGraph, func(), error) {
return nil, nil, err
}
return routingTx, func() {
err := routingTx.close()
err := routingTx.Close()
if err != nil {
log.Errorf("Error closing db tx: %v", err)
}