mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
chore: rest-relay-cache-capacity (#3454)
This commit is contained in:
parent
25a3f4192c
commit
0adddb01da
@ -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
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user