File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -252,10 +252,10 @@ where
252
252
let pool_config = pool. settings . clone ( ) ;
253
253
for shard in 0 ..pool. shards ( ) {
254
254
let database_name = & pool_config. shards [ & shard. to_string ( ) ] . database ;
255
-
256
255
for server in 0 ..pool. servers ( shard) {
257
256
let address = pool. address ( shard, server) ;
258
257
let pool_state = pool. pool_state ( shard, server) ;
258
+ let banned = pool. is_banned ( address, shard, Some ( address. role ) ) ;
259
259
260
260
res. put ( data_row ( & vec ! [
261
261
address. name( ) , // name
@@ -270,7 +270,11 @@ where
270
270
pool_config. user. pool_size. to_string( ) , // max_connections
271
271
pool_state. connections. to_string( ) , // current_connections
272
272
"0" . to_string( ) , // paused
273
- "0" . to_string( ) , // disabled
273
+ match banned {
274
+ // disabled
275
+ true => "1" . to_string( ) ,
276
+ false => "0" . to_string( ) ,
277
+ } ,
274
278
] ) ) ;
275
279
}
276
280
}
You can’t perform that action at this time.
0 commit comments