mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-18 18:17:39 +01:00
In this commit, we take the existing graphsession.ReadyOnlyGraph interface and remove its usage of a kvdb.RTx and replace it with a more abstract `RTx` interface type. The new GraphSource interface is expanded to include the graphsession.ReadOnlyGraph interface and the implementation of it, DBSource, is expanded to include the new methods. It converts the given RTx to the underlying kvdb read transaction where needed.
10 lines
226 B
Go
10 lines
226 B
Go
package sources
|
|
|
|
import "github.com/lightningnetwork/lnd/graph/session"
|
|
|
|
// GraphSource defines the read-only graph interface required by LND for graph
|
|
// related queries.
|
|
type GraphSource interface {
|
|
session.ReadOnlyGraph
|
|
}
|