2795ac6e by astaxie

update panic

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