From 9ddc2f5474379f56d1f1f58d57cc7f0d675b9770 Mon Sep 17 00:00:00 2001 From: liuchun Date: Mon, 7 Mar 2016 15:00:03 +0800 Subject: [PATCH] fix panic err --- cache/ssdb/ssdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/ssdb/ssdb.go b/cache/ssdb/ssdb.go index 128314a6..0f8fdf00 100644 --- a/cache/ssdb/ssdb.go +++ b/cache/ssdb/ssdb.go @@ -27,7 +27,7 @@ func NewSsdbCache() cache.Cache { func (rc *Cache) Get(key string) interface{} { if rc.conn == nil { if err := rc.connectInit(); err != nil { - panic(err) + return nil } } value, err := rc.conn.Get(key)