mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:30:56 +00:00
fix panic err
This commit is contained in:
parent
e29f4b57a3
commit
9ddc2f5474
2
cache/ssdb/ssdb.go
vendored
2
cache/ssdb/ssdb.go
vendored
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user