update panic
Showing
1 changed file
with
3 additions
and
1 deletions
| 1 | package session | 1 | package session |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "fmt" | ||
| 4 | "github.com/garyburd/redigo/redis" | 5 | "github.com/garyburd/redigo/redis" |
| 5 | ) | 6 | ) |
| 6 | 7 | ||
| ... | @@ -67,7 +68,8 @@ func (rp *RedisProvider) connectInit() redis.Conn { | ... | @@ -67,7 +68,8 @@ func (rp *RedisProvider) connectInit() redis.Conn { |
| 67 | for i := 0; i < MAX_POOL_SIZE/2; i++ { | 68 | for i := 0; i < MAX_POOL_SIZE/2; i++ { |
| 68 | c, err := redis.Dial("tcp", rp.savePath) | 69 | c, err := redis.Dial("tcp", rp.savePath) |
| 69 | if err != nil { | 70 | if err != nil { |
| 70 | panic(err) | 71 | fmt.Println(err) |
| 72 | return | ||
| 71 | } | 73 | } |
| 72 | putRedis(c) | 74 | putRedis(c) |
| 73 | } | 75 | } | ... | ... |
-
Please register or sign in to post a comment