outbox_core/config.rs
1#[derive(Clone)]
2pub struct OutboxConfig {
3 pub batch_size: u32,
4 pub retention_days: i64,
5 pub gc_interval_secs: u64,
6 pub poll_interval_secs: u64,
7 pub lock_timeout_mins: i64,
8}
9
10impl Default for OutboxConfig {
11 fn default() -> Self {
12 Self {
13 batch_size: 100,
14 retention_days: 7,
15 gc_interval_secs: 3600,
16 poll_interval_secs: 10,
17 lock_timeout_mins: 5,
18 }
19 }
20}