graph/db: rename Options to KVStoreOptions

Namespace these options so that we can introduce separate options for
the new ChannelGraph.
This commit is contained in:
Elle Mouton committed 2025-03-24 15:05:46 +02:00
1 parent ae3961b47f
commit 81e0608c10
4 files changed
+24 -23

No files matched your search

+3 -3
View File
@@ -198,7 +198,7 @@ type KVStore struct {
// NewKVStore allocates a new KVStore backed by a DB instance. The
// returned instance has its own unique reject cache and channel cache.
func NewKVStore(db kvdb.Backend, options ...OptionModifier) (*KVStore,
func NewKVStore(db kvdb.Backend, options ...KVStoreOptionModifier) (*KVStore,
error) {
opts := DefaultOptions()
@@ -4827,8 +4827,8 @@ func (c *chanGraphNodeTx) ForEachChannel(f func(*models.ChannelEdgeInfo,
// MakeTestGraph creates a new instance of the KVStore for testing
// purposes.
func MakeTestGraph(t testing.TB, modifiers ...OptionModifier) (*ChannelGraph,
error) {
func MakeTestGraph(t testing.TB, modifiers ...KVStoreOptionModifier) (
*ChannelGraph, error) {
opts := DefaultOptions()
for _, modifier := range modifiers {