d0949b64 by Pengfei Xue Committed by asta.xie

fix issue#521, return error when init redis session

1 parent d49984d4
...@@ -129,7 +129,8 @@ func (rp *RedisProvider) SessionInit(maxlifetime int64, savePath string) error { ...@@ -129,7 +129,8 @@ func (rp *RedisProvider) SessionInit(maxlifetime int64, savePath string) error {
129 } 129 }
130 return c, err 130 return c, err
131 }, rp.poolsize) 131 }, rp.poolsize)
132 return nil 132
133 return rp.poollist.Get().Err()
133 } 134 }
134 135
135 // read redis session by sid 136 // read redis session by sid
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!