refactor(core): structural typing for kvstore (#22242)
This commit is contained in:
parent
4733fc1769
commit
65ed5eb800
@ -1,7 +1,7 @@
|
||||
package store
|
||||
|
||||
// KVStore describes the basic interface for interacting with key-value stores.
|
||||
type KVStore interface {
|
||||
type KVStore = interface {
|
||||
// Get returns nil iff key doesn't exist. Errors on nil key.
|
||||
Get(key []byte) ([]byte, error)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user