mirror of
https://github.com/astaxie/beego.git
synced 2025-02-16 22:57:02 +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 {
|
func (lp *LedisProvider) SessionInit(maxlifetime int64, savePath string) error {
|
||||||
var err error
|
var err error
|
||||||
lp.maxlifetime = maxlifetime
|
lp.maxlifetime = maxlifetime
|
||||||
configs := strings.Split(savepath, ",")
|
configs := strings.Split(savePath, ",")
|
||||||
if len(configs) == 1 {
|
if len(configs) == 1 {
|
||||||
lp.savePath = configs[0]
|
lp.savePath = configs[0]
|
||||||
} else if len(configs) == 2 {
|
} else if len(configs) == 2 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user