mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-10-17 12:40:41 +08:00
fix: no data on server status page #119
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user