1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-14 02:03:32 +00:00

Fix the wrong parameter bug in ledis session.

This commit is contained in:
Meaglith Ma 2015-03-01 12:03:03 +08:00
parent 9f70561f21
commit 7ec2a077d9

View File

@ -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 {