chore: rest-relay-cache-capacity (#3454)

This commit is contained in:
Darshan K 2025-06-13 15:08:47 +05:30 committed by GitHub
parent 25a3f4192c
commit 0adddb01da
2 changed files with 2 additions and 3 deletions

View File

@ -503,7 +503,7 @@ with the drawback of consuming some more bandwidth.""",
restRelayCacheCapacity* {.
desc: "Capacity of the Relay REST API message cache.",
defaultValue: 30,
defaultValue: 50,
name: "rest-relay-cache-capacity"
.}: uint32

View File

@ -139,8 +139,7 @@ proc startRestServerProtocolSupport*(
if relayEnabled:
## This MessageCache is used, f.e., in js-waku<>nwaku interop tests.
## js-waku tests asks nwaku-docker through REST whether a message is properly received.
const RestRelayCacheCapacity = 50
let cache = MessageCache.init(int(RestRelayCacheCapacity))
let cache = MessageCache.init(int(conf.relayCacheCapacity))
let handler: WakuRelayHandler = messageCacheHandler(cache)