fix sesseion redis db error
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -145,7 +145,7 @@ func (rp *RedisProvider) SessionInit(maxlifetime int64, savePath string) error { | ... | @@ -145,7 +145,7 @@ func (rp *RedisProvider) SessionInit(maxlifetime int64, savePath string) error { |
| 145 | rp.password = configs[2] | 145 | rp.password = configs[2] |
| 146 | } | 146 | } |
| 147 | if len(configs) > 3 { | 147 | if len(configs) > 3 { |
| 148 | dbnum, err := strconv.Atoi(configs[1]) | 148 | dbnum, err := strconv.Atoi(configs[3]) |
| 149 | if err != nil || dbnum < 0 { | 149 | if err != nil || dbnum < 0 { |
| 150 | rp.dbNum = 0 | 150 | rp.dbNum = 0 |
| 151 | } else { | 151 | } else { | ... | ... |
-
Please register or sign in to post a comment