Fix: avoid shadow of builtin

This commit is contained in:
loyalsoldier
2021-06-17 03:12:44 +08:00
parent c61ae2d3e1
commit 87158d6c3f
2 changed files with 4 additions and 4 deletions

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
}
}