From 37468aeb9cb2ac6f6414d9b4043741564048d9ae Mon Sep 17 00:00:00 2001 From: Nathan Klick Date: Fri, 22 Nov 2024 15:39:48 -0600 Subject: [PATCH] fix: resolve incorrect use of keys() instead of values() Signed-off-by: Nathan Klick --- resources/profiles/custom-spec.yaml | 4 ++-- src/core/account_manager.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/profiles/custom-spec.yaml b/resources/profiles/custom-spec.yaml index 193e082d3..1cf022cdc 100644 --- a/resources/profiles/custom-spec.yaml +++ b/resources/profiles/custom-spec.yaml @@ -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: diff --git a/src/core/account_manager.ts b/src/core/account_manager.ts index fa87441d2..a620f91e8 100644 --- a/src/core/account_manager.ts +++ b/src/core/account_manager.ts @@ -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 {