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:
commit
c4aa33fb1b
@ -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