1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-26 08:50:49 +00:00

Merge pull request #1052 from dockercn/develop

Fix the wrong parameter bug in ledis session support cause build failure
This commit is contained in:
astaxie 2015-03-01 13:58:21 +08:00
commit c4aa33fb1b

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 {