storage rework

This commit is contained in:
royalcat 2024-06-15 01:14:44 +03:00
parent 06153d61c9
commit e9df8925d1
49 changed files with 1825 additions and 1303 deletions
pkg/kvtrace

View file

@ -53,7 +53,7 @@ func (m *traceSrtore[K, V]) Range(ctx context.Context, iter kv.Iter[K, V]) error
defer span.End()
count := 0
iterCount := func(k K, v V) bool {
iterCount := func(k K, v V) error {
count++
return iter(k, v)
}
@ -69,7 +69,7 @@ func (m *traceSrtore[K, V]) RangeWithPrefix(ctx context.Context, k K, iter kv.It
defer span.End()
count := 0
iterCount := func(k K, v V) bool {
iterCount := func(k K, v V) error {
count++
return iter(k, v)
}