fix: no data on server status page #119

This commit is contained in:
Lykin
2024-01-12 11:18:41 +08:00
parent cd36dbda48
commit 042ef3075a
3 changed files with 23 additions and 17 deletions

View File

@@ -291,7 +291,8 @@ func (b *browserService) getRedisClient(server string, db int) (item *connection
var ok bool
var client redis.UniversalClient
if item, ok = b.connMap[server]; ok {
if item.db == db {
if item.db == db || db < 0 {
// return without switch database directly
return
}