mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-02-26 08:43:10 +00:00
chore: fix typo
This commit is contained in:
parent
19c110eee2
commit
b4f522ddc5
@ -112,10 +112,10 @@ when isMainModule:
|
|||||||
nodeHealthMonitor = WakuNodeHealthMonitor()
|
nodeHealthMonitor = WakuNodeHealthMonitor()
|
||||||
nodeHealthMonitor.setOverallHealth(HealthStatus.INITIALIZING)
|
nodeHealthMonitor.setOverallHealth(HealthStatus.INITIALIZING)
|
||||||
|
|
||||||
let restServer = rest_server_builder.startRestServerEsentials(
|
let restServer = rest_server_builder.startRestServerEssentials(
|
||||||
nodeHealthMonitor, wakuConf
|
nodeHealthMonitor, wakuConf
|
||||||
).valueOr:
|
).valueOr:
|
||||||
error "Starting esential REST server failed.", error = $error
|
error "Starting essential REST server failed.", error = $error
|
||||||
quit(QuitFailure)
|
quit(QuitFailure)
|
||||||
|
|
||||||
var wakuApp = Waku.init(wakuConf).valueOr:
|
var wakuApp = Waku.init(wakuConf).valueOr:
|
||||||
|
|||||||
@ -42,7 +42,7 @@ when isMainModule:
|
|||||||
error "failure while loading the configuration", error = error
|
error "failure while loading the configuration", error = error
|
||||||
quit(QuitFailure)
|
quit(QuitFailure)
|
||||||
|
|
||||||
## Also called within Waku.init. The call to startRestServerEsentials needs the following line
|
## Also called within Waku.init. The call to startRestServerEssentials needs the following line
|
||||||
logging.setupLog(conf.logLevel, conf.logFormat)
|
logging.setupLog(conf.logLevel, conf.logFormat)
|
||||||
|
|
||||||
case conf.cmd
|
case conf.cmd
|
||||||
@ -58,10 +58,10 @@ when isMainModule:
|
|||||||
nodeHealthMonitor = WakuNodeHealthMonitor()
|
nodeHealthMonitor = WakuNodeHealthMonitor()
|
||||||
nodeHealthMonitor.setOverallHealth(HealthStatus.INITIALIZING)
|
nodeHealthMonitor.setOverallHealth(HealthStatus.INITIALIZING)
|
||||||
|
|
||||||
let restServer = rest_server_builder.startRestServerEsentials(
|
let restServer = rest_server_builder.startRestServerEssentials(
|
||||||
nodeHealthMonitor, conf
|
nodeHealthMonitor, conf
|
||||||
).valueOr:
|
).valueOr:
|
||||||
error "Starting esential REST server failed.", error = $error
|
error "Starting essential REST server failed.", error = $error
|
||||||
quit(QuitFailure)
|
quit(QuitFailure)
|
||||||
|
|
||||||
var waku = Waku.init(conf).valueOr:
|
var waku = Waku.init(conf).valueOr:
|
||||||
|
|||||||
@ -53,7 +53,7 @@ type WakuNodeConf* = object
|
|||||||
|
|
||||||
logFormat* {.
|
logFormat* {.
|
||||||
desc:
|
desc:
|
||||||
"Specifies what kind of logs should be written to stdout. Suported formats: TEXT, JSON",
|
"Specifies what kind of logs should be written to stdout. Supported formats: TEXT, JSON",
|
||||||
defaultValue: logging.LogFormat.TEXT,
|
defaultValue: logging.LogFormat.TEXT,
|
||||||
name: "log-format"
|
name: "log-format"
|
||||||
.}: logging.LogFormat
|
.}: logging.LogFormat
|
||||||
|
|||||||
@ -29,7 +29,7 @@ import
|
|||||||
var restServerNotInstalledTab {.threadvar.}: TableRef[string, string]
|
var restServerNotInstalledTab {.threadvar.}: TableRef[string, string]
|
||||||
restServerNotInstalledTab = newTable[string, string]()
|
restServerNotInstalledTab = newTable[string, string]()
|
||||||
|
|
||||||
proc startRestServerEsentials*(
|
proc startRestServerEssentials*(
|
||||||
nodeHealthMonitor: WakuNodeHealthMonitor, conf: WakuNodeConf
|
nodeHealthMonitor: WakuNodeHealthMonitor, conf: WakuNodeConf
|
||||||
): Result[WakuRestServerRef, string] =
|
): Result[WakuRestServerRef, string] =
|
||||||
if not conf.rest:
|
if not conf.rest:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user