1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 11:50:55 +00:00

update panic

This commit is contained in:
astaxie 2013-10-17 21:13:54 +08:00
parent 83e6079ff7
commit 2795ac6e6b

View File

@ -1,6 +1,7 @@
package session package session
import ( import (
"fmt"
"github.com/garyburd/redigo/redis" "github.com/garyburd/redigo/redis"
) )
@ -67,7 +68,8 @@ func (rp *RedisProvider) connectInit() redis.Conn {
for i := 0; i < MAX_POOL_SIZE/2; i++ { for i := 0; i < MAX_POOL_SIZE/2; i++ {
c, err := redis.Dial("tcp", rp.savePath) c, err := redis.Dial("tcp", rp.savePath)
if err != nil { if err != nil {
panic(err) fmt.Println(err)
return
} }
putRedis(c) putRedis(c)
} }