Skip to content

Commit 799de6e

Browse files
committed
fix(cluster): fix pbi autoscaling
1 parent e2238dc commit 799de6e

File tree

1 file changed

+4
-10
lines changed
  • packages/core/services/cluster/src/ops/datacenter/topology_get

1 file changed

+4
-10
lines changed

packages/core/services/cluster/src/ops/datacenter/topology_get/mod.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ impl TryFrom<ServerRow> for ServerRowStructured {
4444
runtime: if let Some(nomad_node_id) = value.nomad_node_id {
4545
Runtime::Nomad(nomad_node_id)
4646
} else if let Some(pegboard_client_id) = value.pegboard_client_id {
47-
if let PoolType::Pegboard = pool_type {
48-
Runtime::Pegboard(pegboard_client_id)
49-
} else {
50-
// Pegboard isolate
51-
Runtime::None
52-
}
47+
Runtime::Pegboard(pegboard_client_id)
5348
} else {
5449
Runtime::None
5550
},
@@ -60,7 +55,6 @@ impl TryFrom<ServerRow> for ServerRowStructured {
6055
#[derive(Debug)]
6156
enum Runtime {
6257
Nomad(String),
63-
// Does not include pegboard isolate
6458
Pegboard(Uuid),
6559
// Other pool types
6660
None,
@@ -197,9 +191,9 @@ pub async fn cluster_datacenter_topology_get(
197191
matches!(
198192
server.pool_type,
199193
PoolType::Gg
200-
| PoolType::Ats | PoolType::PegboardIsolate
201-
| PoolType::Fdb | PoolType::Worker
202-
| PoolType::Nats | PoolType::Guard
194+
| PoolType::Ats | PoolType::Fdb
195+
| PoolType::Worker | PoolType::Nats
196+
| PoolType::Guard
203197
)
204198
})
205199
.collect::<Vec<_>>();

0 commit comments

Comments
 (0)