Skip to content

Commit c10b988

Browse files
committed
Merge branch 'main' into refactor-schedulers
2 parents a7024d0 + 7dbe09d commit c10b988

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

simulator/src/main/java/byzzbench/simulator/BaseScenario.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,8 @@ public void addNode(Replica replica) {
153153
}
154154

155155
@Override
156-
public synchronized Replica getNode(String nodeId) {
157-
Node node = this.getNodes().get(nodeId);
158-
if (!(node instanceof Replica replica)) {
159-
throw new IllegalArgumentException("Node with ID " + nodeId + " is not a replica.");
160-
}
161-
return replica;
156+
public synchronized Node getNode(String nodeId) {
157+
return this.getNodes().get(nodeId);
162158
}
163159

164160
/**

webui/components/ClientList.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
"use client";
22

3+
import { NodeCard } from "@/components/NodeCard";
34
import { useGetClients } from "@/lib/byzzbench-client";
45
import { Grid } from "@mantine/core";
56
import React from "react";
6-
import { ClientCard } from "./ClientCard";
77

88
export const ClientList = () => {
99
const { data: clientIds } = useGetClients({ query: { retry: true } });
1010
return (
1111
<Grid gutter="md">
1212
{clientIds?.data.map((clientId) => (
1313
<Grid.Col span="auto" key={clientId}>
14-
<ClientCard clientId={clientId} />
14+
<NodeCard nodeId={clientId} />
1515
</Grid.Col>
1616
))}
1717
</Grid>

0 commit comments

Comments
 (0)