mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat: add tick interval to drainer (#517)
This commit is contained in:
@ -116,6 +116,8 @@ impl Default for super::settings::DrainerSettings {
|
||||
stream_name: "DRAINER_STREAM".into(),
|
||||
num_partitions: 64,
|
||||
max_read_count: 100,
|
||||
shutdown_interval: 1000,
|
||||
loop_interval: 500,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -194,6 +194,8 @@ pub struct DrainerSettings {
|
||||
pub stream_name: String,
|
||||
pub num_partitions: u8,
|
||||
pub max_read_count: u64,
|
||||
pub shutdown_interval: u32, // in milliseconds
|
||||
pub loop_interval: u32, // in milliseconds
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user