Fix: avoid shadow of builtin

This commit is contained in:
loyalsoldier 2021-06-17 03:12:44 +08:00
parent c61ae2d3e1
commit 87158d6c3f
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90
2 changed files with 4 additions and 4 deletions

View File

@ -20,6 +20,6 @@ import (
// NewFakeConfig return a fake Configer
func NewFakeConfig() Configer {
new := config.NewFakeConfig()
return &newToOldConfigerAdapter{delegate: new}
config := config.NewFakeConfig()
return &newToOldConfigerAdapter{delegate: config}
}

View File

@ -45,9 +45,9 @@ func CfgCookieName(cookieName string) ManagerConfigOpt {
}
// CfgCookieName set len of session id
func CfgSessionIdLength(len int64) ManagerConfigOpt {
func CfgSessionIdLength(length int64) ManagerConfigOpt {
return func(config *ManagerConfig) {
config.SessionIDLength = len
config.SessionIDLength = length
}
}