Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ impl TryFrom<ServerRow> for ServerRowStructured {
runtime: if let Some(nomad_node_id) = value.nomad_node_id {
Runtime::Nomad(nomad_node_id)
} else if let Some(pegboard_client_id) = value.pegboard_client_id {
if let PoolType::Pegboard = pool_type {
Runtime::Pegboard(pegboard_client_id)
} else {
// Pegboard isolate
Runtime::None
}
Runtime::Pegboard(pegboard_client_id)
} else {
Runtime::None
},
Expand All @@ -60,7 +55,6 @@ impl TryFrom<ServerRow> for ServerRowStructured {
#[derive(Debug)]
enum Runtime {
Nomad(String),
// Does not include pegboard isolate
Pegboard(Uuid),
// Other pool types
None,
Expand Down Expand Up @@ -197,9 +191,9 @@ pub async fn cluster_datacenter_topology_get(
matches!(
server.pool_type,
PoolType::Gg
| PoolType::Ats | PoolType::PegboardIsolate
| PoolType::Fdb | PoolType::Worker
| PoolType::Nats | PoolType::Guard
| PoolType::Ats | PoolType::Fdb
| PoolType::Worker | PoolType::Nats
| PoolType::Guard
)
})
.collect::<Vec<_>>();
Expand Down
Loading