From 663e5d728c1ccd89c02535bc07df4c7702d5b5e6 Mon Sep 17 00:00:00 2001 From: AllenX2018 Date: Fri, 13 Nov 2020 16:47:22 +0800 Subject: [PATCH] fix issue #4312 --- client/cache/ssdb/ssdb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cache/ssdb/ssdb.go b/client/cache/ssdb/ssdb.go index 1acee861..def9273d 100644 --- a/client/cache/ssdb/ssdb.go +++ b/client/cache/ssdb/ssdb.go @@ -28,14 +28,14 @@ func NewSsdbCache() cache.Cache { func (rc *Cache) Get(ctx context.Context, key string) (interface{}, error) { if rc.conn == nil { if err := rc.connectInit(); err != nil { - return nil, nil + return nil, err } } value, err := rc.conn.Get(key) if err == nil { return value, nil } - return nil, nil + return nil, err } // GetMulti gets one or keys values from ssdb.