Commit 7ec2a077 authored by Meaglith Ma's avatar Meaglith Ma

Fix the wrong parameter bug in ledis session.

parent 9f70561f
...@@ -85,7 +85,7 @@ type LedisProvider struct { ...@@ -85,7 +85,7 @@ type LedisProvider struct {
func (lp *LedisProvider) SessionInit(maxlifetime int64, savePath string) error { func (lp *LedisProvider) SessionInit(maxlifetime int64, savePath string) error {
var err error var err error
lp.maxlifetime = maxlifetime lp.maxlifetime = maxlifetime
configs := strings.Split(savepath, ",") configs := strings.Split(savePath, ",")
if len(configs) == 1 { if len(configs) == 1 {
lp.savePath = configs[0] lp.savePath = configs[0]
} else if len(configs) == 2 { } else if len(configs) == 2 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment