mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-11 23:35:08 +00:00
fix(rest): mount filterClient for REST API
This commit is contained in:
parent
a5b1cfd024
commit
357a245536
@ -596,6 +596,10 @@ proc startRestServer(app: App, address: ValidIpAddress, port: Port, conf: WakuNo
|
||||
|
||||
## Filter REST API
|
||||
if conf.filter:
|
||||
try:
|
||||
waitFor app.node.mountFilterClient()
|
||||
except CatchableError:
|
||||
return err("Failed to mount FilterClient" & getCurrentExceptionMsg())
|
||||
let legacyFilterCache = rest_legacy_filter_api.MessageCache.init()
|
||||
rest_legacy_filter_api.installLegacyFilterRestApiHandlers(server.router, app.node, legacyFilterCache)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user