Fix the wrong parameter bug in ledis session.
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -85,7 +85,7 @@ type LedisProvider struct { | ... | @@ -85,7 +85,7 @@ type LedisProvider struct { |
| 85 | func (lp *LedisProvider) SessionInit(maxlifetime int64, savePath string) error { | 85 | func (lp *LedisProvider) SessionInit(maxlifetime int64, savePath string) error { |
| 86 | var err error | 86 | var err error |
| 87 | lp.maxlifetime = maxlifetime | 87 | lp.maxlifetime = maxlifetime |
| 88 | configs := strings.Split(savepath, ",") | 88 | configs := strings.Split(savePath, ",") |
| 89 | if len(configs) == 1 { | 89 | if len(configs) == 1 { |
| 90 | lp.savePath = configs[0] | 90 | lp.savePath = configs[0] |
| 91 | } else if len(configs) == 2 { | 91 | } else if len(configs) == 2 { | ... | ... |
-
Please register or sign in to post a comment