mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-22 20:50:22 +00:00
* change all usage of std.options.Option[T] to results.Opt[T] * fix broken apps and examples (to validate refactor) * removed all std/options code added for libp2p v2 migration * add broker Opt codec to persistency/backend_comm.nim * add a readValue overload for Opt[T] in tools/confutils/cli_args.nim * keep Option where required (Presto, confutils' config_file.nim) * Change generateRlnProof error handling * Fix imports
16 lines
836 B
Nim
16 lines
836 B
Nim
import results
|
|
|
|
type ReliableChannelManagerConf* = object
|
|
## All-`Opt` partial; unset fields fall back to `createReliableChannel` defaults.
|
|
segmentationEnableReedSolomon*: Opt[bool]
|
|
## Add Reed-Solomon parity segments for recovery of lost segments.
|
|
segmentationSegmentSizeBytes*: Opt[int] ## Maximum segment size in bytes.
|
|
sdsAcknowledgementTimeoutMs*: Opt[int]
|
|
## Time to wait before retransmitting an unacknowledged message.
|
|
sdsMaxRetransmissions*: Opt[int]
|
|
## Maximum retransmission attempts before delivery fails.
|
|
sdsCausalHistorySize*: Opt[int] ## Number of message ids kept in causal history.
|
|
rateLimitEnabled*: Opt[bool] ## Enable rate limiting.
|
|
rateLimitEpochPeriodSec*: Opt[int] ## Rate-limit epoch length in seconds.
|
|
rateLimitMessagesPerEpoch*: Opt[int] ## Messages allowed per rate-limit epoch.
|