mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:10:54 +00:00
Fix the wrong parameter bug in ledis session.
This commit is contained in:
parent
9f70561f21
commit
7ec2a077d9
@ -85,7 +85,7 @@ type LedisProvider struct {
|
||||
func (lp *LedisProvider) SessionInit(maxlifetime int64, savePath string) error {
|
||||
var err error
|
||||
lp.maxlifetime = maxlifetime
|
||||
configs := strings.Split(savepath, ",")
|
||||
configs := strings.Split(savePath, ",")
|
||||
if len(configs) == 1 {
|
||||
lp.savePath = configs[0]
|
||||
} else if len(configs) == 2 {
|
||||
|
Loading…
Reference in New Issue
Block a user