File tree 2 files changed +4
-8
lines changed
simulator/src/main/java/byzzbench/simulator
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -153,12 +153,8 @@ public void addNode(Replica replica) {
153
153
}
154
154
155
155
@ 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 );
162
158
}
163
159
164
160
/**
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
+ import { NodeCard } from "@/components/NodeCard" ;
3
4
import { useGetClients } from "@/lib/byzzbench-client" ;
4
5
import { Grid } from "@mantine/core" ;
5
6
import React from "react" ;
6
- import { ClientCard } from "./ClientCard" ;
7
7
8
8
export const ClientList = ( ) => {
9
9
const { data : clientIds } = useGetClients ( { query : { retry : true } } ) ;
10
10
return (
11
11
< Grid gutter = "md" >
12
12
{ clientIds ?. data . map ( ( clientId ) => (
13
13
< Grid . Col span = "auto" key = { clientId } >
14
- < ClientCard clientId = { clientId } />
14
+ < NodeCard nodeId = { clientId } />
15
15
</ Grid . Col >
16
16
) ) }
17
17
</ Grid >
You can’t perform that action at this time.
0 commit comments