2795ac6e by astaxie

update panic

1 parent 83e6079f
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)
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!