Fix kvstore wire (#111827)
This commit is contained in:
@@ -50,7 +50,7 @@ type kvStorageBackend struct {
|
||||
|
||||
var _ StorageBackend = &kvStorageBackend{}
|
||||
|
||||
type KvBackendOptions struct {
|
||||
type KVBackendOptions struct {
|
||||
KvStore KV
|
||||
WithPruner bool
|
||||
EventRetentionPeriod time.Duration // How long to keep events (default: 1 hour)
|
||||
@@ -59,7 +59,7 @@ type KvBackendOptions struct {
|
||||
Reg prometheus.Registerer // TODO add metrics
|
||||
}
|
||||
|
||||
func NewKvStorageBackend(opts KvBackendOptions) (StorageBackend, error) {
|
||||
func NewKVStorageBackend(opts KVBackendOptions) (StorageBackend, error) {
|
||||
ctx := context.Background()
|
||||
kv := opts.KvStore
|
||||
|
||||
|
||||
@@ -27,11 +27,11 @@ var appsNamespace = NamespacedResource{
|
||||
|
||||
func setupTestStorageBackend(t *testing.T) *kvStorageBackend {
|
||||
kv := setupTestKV(t)
|
||||
opts := KvBackendOptions{
|
||||
opts := KVBackendOptions{
|
||||
KvStore: kv,
|
||||
WithPruner: true,
|
||||
}
|
||||
backend, err := NewKvStorageBackend(opts)
|
||||
backend, err := NewKVStorageBackend(opts)
|
||||
kvBackend := backend.(*kvStorageBackend)
|
||||
require.NoError(t, err)
|
||||
return kvBackend
|
||||
|
||||
Reference in New Issue
Block a user