Commit 9ddc2f54 authored by liuchun's avatar liuchun

fix panic err

parent e29f4b57
...@@ -27,7 +27,7 @@ func NewSsdbCache() cache.Cache { ...@@ -27,7 +27,7 @@ func NewSsdbCache() cache.Cache {
func (rc *Cache) Get(key string) interface{} { func (rc *Cache) Get(key string) interface{} {
if rc.conn == nil { if rc.conn == nil {
if err := rc.connectInit(); err != nil { if err := rc.connectInit(); err != nil {
panic(err) return nil
} }
} }
value, err := rc.conn.Get(key) value, err := rc.conn.Get(key)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment