multi: rename KVPaymentDB to KVStore
This matches the same naming as used in the graph package.
This commit is contained in:
5 files changed
+52
-52
No files matched your search
@@ -16,16 +16,16 @@ func NewTestDB(t *testing.T, opts ...OptionModifier) DB {
|
||||
|
||||
t.Cleanup(backendCleanup)
|
||||
|
||||
paymentDB, err := NewKVPaymentsDB(backend, opts...)
|
||||
paymentDB, err := NewKVStore(backend, opts...)
|
||||
require.NoError(t, err)
|
||||
|
||||
return paymentDB
|
||||
}
|
||||
|
||||
// NewKVTestDB is a helper function that creates an BBolt database for testing
|
||||
// and there is no need to convert the interface to the KVPaymentsDB because for
|
||||
// and there is no need to convert the interface to the KVStore because for
|
||||
// some unit tests we still need access to the kvdb interface.
|
||||
func NewKVTestDB(t *testing.T, opts ...OptionModifier) *KVPaymentsDB {
|
||||
func NewKVTestDB(t *testing.T, opts ...OptionModifier) *KVStore {
|
||||
backend, backendCleanup, err := kvdb.GetTestBackend(
|
||||
t.TempDir(), "kvPaymentDB",
|
||||
)
|
||||
@@ -33,7 +33,7 @@ func NewKVTestDB(t *testing.T, opts ...OptionModifier) *KVPaymentsDB {
|
||||
|
||||
t.Cleanup(backendCleanup)
|
||||
|
||||
paymentDB, err := NewKVPaymentsDB(backend, opts...)
|
||||
paymentDB, err := NewKVStore(backend, opts...)
|
||||
require.NoError(t, err)
|
||||
|
||||
return paymentDB
|
||||
|
||||
Reference in new issue
Block a user