From ed5d30a58eb7e3f3f0d6d83d3e75215309163217 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 29 May 2025 12:43:33 +0300 Subject: [PATCH] store/noop: fixup Exists Signed-off-by: Vasiliy Tolstov --- store/noop.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/store/noop.go b/store/noop.go index d8c4bb92..0b4d8914 100644 --- a/store/noop.go +++ b/store/noop.go @@ -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 {