mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-17 05:13:09 +00:00
chore: fix typo
This commit is contained in:
parent
19c110eee2
commit
b4f522ddc5
@ -112,10 +112,10 @@ when isMainModule:
|
||||
nodeHealthMonitor = WakuNodeHealthMonitor()
|
||||
nodeHealthMonitor.setOverallHealth(HealthStatus.INITIALIZING)
|
||||
|
||||
let restServer = rest_server_builder.startRestServerEsentials(
|
||||
let restServer = rest_server_builder.startRestServerEssentials(
|
||||
nodeHealthMonitor, wakuConf
|
||||
).valueOr:
|
||||
error "Starting esential REST server failed.", error = $error
|
||||
error "Starting essential REST server failed.", error = $error
|
||||
quit(QuitFailure)
|
||||
|
||||
var wakuApp = Waku.init(wakuConf).valueOr:
|
||||
|
||||
@ -42,7 +42,7 @@ when isMainModule:
|
||||
error "failure while loading the configuration", error = error
|
||||
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)
|
||||
|
||||
case conf.cmd
|
||||
@ -58,10 +58,10 @@ when isMainModule:
|
||||
nodeHealthMonitor = WakuNodeHealthMonitor()
|
||||
nodeHealthMonitor.setOverallHealth(HealthStatus.INITIALIZING)
|
||||
|
||||
let restServer = rest_server_builder.startRestServerEsentials(
|
||||
let restServer = rest_server_builder.startRestServerEssentials(
|
||||
nodeHealthMonitor, conf
|
||||
).valueOr:
|
||||
error "Starting esential REST server failed.", error = $error
|
||||
error "Starting essential REST server failed.", error = $error
|
||||
quit(QuitFailure)
|
||||
|
||||
var waku = Waku.init(conf).valueOr:
|
||||
|
||||
@ -53,7 +53,7 @@ type WakuNodeConf* = object
|
||||
|
||||
logFormat* {.
|
||||
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,
|
||||
name: "log-format"
|
||||
.}: logging.LogFormat
|
||||
|
||||
@ -29,7 +29,7 @@ import
|
||||
var restServerNotInstalledTab {.threadvar.}: TableRef[string, string]
|
||||
restServerNotInstalledTab = newTable[string, string]()
|
||||
|
||||
proc startRestServerEsentials*(
|
||||
proc startRestServerEssentials*(
|
||||
nodeHealthMonitor: WakuNodeHealthMonitor, conf: WakuNodeConf
|
||||
): Result[WakuRestServerRef, string] =
|
||||
if not conf.rest:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user