Expand description
Configuration for the sync engine.
§Example
use sync_engine::SyncEngineConfig;
// Minimal config (uses defaults)
let config = SyncEngineConfig::default();
assert_eq!(config.l1_max_bytes, 256 * 1024 * 1024); // 256 MB
// Full config
let config = SyncEngineConfig {
redis_url: Some("redis://localhost:6379".into()),
sql_url: Some("mysql://user:pass@localhost/db".into()),
l1_max_bytes: 128 * 1024 * 1024, // 128 MB
batch_flush_count: 100,
batch_flush_ms: 50,
..Default::default()
};Structs§
- Sync
Engine Config - Configuration for the sync engine.