mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 11:50:55 +00:00
update panic
This commit is contained in:
parent
83e6079ff7
commit
2795ac6e6b
@ -1,6 +1,7 @@
|
||||
package session
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/garyburd/redigo/redis"
|
||||
)
|
||||
|
||||
@ -67,7 +68,8 @@ func (rp *RedisProvider) connectInit() redis.Conn {
|
||||
for i := 0; i < MAX_POOL_SIZE/2; i++ {
|
||||
c, err := redis.Dial("tcp", rp.savePath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
putRedis(c)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user