new kv, ctx in nfs handler
This commit is contained in:
parent
609d69fb5a
commit
bc4b39b1c1
41 changed files with 270 additions and 222 deletions
pkg/kvsingle
|
@ -15,7 +15,7 @@ func New[K, V any](db kv.Store[K, V], key K) *Value[K, V] {
|
|||
return &Value[K, V]{Key: key, db: db}
|
||||
}
|
||||
|
||||
func (s *Value[K, V]) Get(ctx context.Context) (V, bool, error) {
|
||||
func (s *Value[K, V]) Get(ctx context.Context) (V, error) {
|
||||
return s.db.Get(ctx, s.Key)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue