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 {