Skip to content

Commit

Permalink
fix: resolve incorrect use of keys() instead of values()
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
  • Loading branch information
nathanklick committed Nov 22, 2024
1 parent 79598ce commit 37468ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/profiles/custom-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ local: # 3 nodes, ~850 TPS (Docker Desktop 8 cores, 16 GB RAM)
- name: JAVA_HEAP_MIN
value: 1g
- name: JAVA_HEAP_MAX
value: 6g
value: 4g
- name: JAVA_OPTS
value: "-XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ZAllocationSpikeTolerance=2 -XX:ConcGCThreads=2 -XX:ZMarkStackSpaceLimit=1g -XX:MaxDirectMemorySize=2g -XX:MetaspaceSize=100M -Xlog:gc*:gc.log --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true"
value: "-XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:ZAllocationSpikeTolerance=2 -XX:ConcGCThreads=2 -XX:ZMarkStackSpaceLimit=1g -XX:MaxDirectMemorySize=1500m -XX:MetaspaceSize=100M -Xlog:gc*:gc.log --add-opens java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED -Dio.netty.tryReflectionSetAccessible=true"
haproxy: # use chart defaults
envoyProxy: # use chart defaults
rpcRelay:
Expand Down
2 changes: 1 addition & 1 deletion src/core/account_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class AccountManager {
let localPort = constants.LOCAL_NODE_START_PORT

if (useSecondNodeOnly && networkNodeServicesMap.size > 1) {
const networkNodeService = networkNodeServicesMap.get(networkNodeServicesMap.keys()[1]) as NetworkNodeServices
const networkNodeService = networkNodeServicesMap.get(networkNodeServicesMap.values()[1]) as NetworkNodeServices
const addlNode = await this.configureNodeAccess(networkNodeService, localPort, networkNodeServicesMap.size)
nodes = { ...nodes, ...addlNode }
} else {
Expand Down

0 comments on commit 37468ae

Please sign in to comment.