mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 08:23:08 +00:00
delay config for lp sim
This commit is contained in:
parent
e91bf3f14a
commit
d238cda993
@ -159,7 +159,7 @@ proc setupAndPublish(rng: ref HmacDrbgContext, conf: LPMixConf) {.async.} =
|
||||
error "failed to publish message", error = res.error
|
||||
lp_mix_failed.inc(labelValues = ["publish_error"])
|
||||
|
||||
await sleepAsync(1000)
|
||||
await sleepAsync(conf.msgInterval)
|
||||
info "###########Sent all messages via mix"
|
||||
quit(0)
|
||||
|
||||
|
||||
@ -38,6 +38,12 @@ type
|
||||
name: "num-msgs",
|
||||
}: int
|
||||
|
||||
msgInterval*{.
|
||||
desc: "Interval between messages in milliseconds.",
|
||||
defaultValue: 1000,
|
||||
name: "msg-interval",
|
||||
}: int
|
||||
|
||||
minMixPoolSize* {.
|
||||
desc: "Number of messages to wait for before sending.",
|
||||
defaultValue: 3,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user