store/noop: fixup Exists
Some checks failed
coverage / build (push) Has been cancelled
test / test (push) Has been cancelled
sync / sync (push) Has been cancelled

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-05-29 12:43:33 +03:00
parent b4b67a8b41
commit ed5d30a58e

View File

@@ -6,6 +6,7 @@ import (
"sync/atomic"
"go.unistack.org/micro/v4/options"
"go.unistack.org/micro/v4/store"
"go.unistack.org/micro/v4/util/id"
)
@@ -139,7 +140,7 @@ func (n *noopStore) fnExists(ctx context.Context, _ string, _ ...ExistsOption) e
return ctx.Err()
default:
}
return nil
return store.ErrNotFound
}
func (n *noopStore) Write(ctx context.Context, key string, val interface{}, opts ...WriteOption) error {