Skip to content

Commit

Permalink
refactor(core): structural typing for kvstore
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Oct 11, 2024
1 parent 4733fc1 commit 2b84c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/store/store.go
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 2b84c30

Please sign in to comment.