mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +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* {.
|
restRelayCacheCapacity* {.
|
||||||
desc: "Capacity of the Relay REST API message cache.",
|
desc: "Capacity of the Relay REST API message cache.",
|
||||||
defaultValue: 30,
|
defaultValue: 50,
|
||||||
name: "rest-relay-cache-capacity"
|
name: "rest-relay-cache-capacity"
|
||||||
.}: uint32
|
.}: uint32
|
||||||
|
|
||||||
|
|||||||
@ -139,8 +139,7 @@ proc startRestServerProtocolSupport*(
|
|||||||
if relayEnabled:
|
if relayEnabled:
|
||||||
## This MessageCache is used, f.e., in js-waku<>nwaku interop tests.
|
## 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.
|
## js-waku tests asks nwaku-docker through REST whether a message is properly received.
|
||||||
const RestRelayCacheCapacity = 50
|
let cache = MessageCache.init(int(conf.relayCacheCapacity))
|
||||||
let cache = MessageCache.init(int(RestRelayCacheCapacity))
|
|
||||||
|
|
||||||
let handler: WakuRelayHandler = messageCacheHandler(cache)
|
let handler: WakuRelayHandler = messageCacheHandler(cache)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user