fix panic err

This commit is contained in:
liuchun 2016-03-07 15:00:03 +08:00
parent e29f4b57a3
commit 9ddc2f5474
1 changed files with 1 additions and 1 deletions

2
cache/ssdb/ssdb.go vendored
View File

@ -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)