mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
chore: address Rust 1.78 clippy lints (#4545)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -43,11 +43,10 @@ where
|
||||
|
||||
tokio::time::sleep(Duration::from_millis(timeout.sample(&mut rng))).await;
|
||||
|
||||
let mut interval = tokio::time::interval(std::time::Duration::from_millis(
|
||||
scheduler_settings.loop_interval,
|
||||
));
|
||||
let mut interval =
|
||||
tokio::time::interval(Duration::from_millis(scheduler_settings.loop_interval));
|
||||
|
||||
let mut shutdown_interval = tokio::time::interval(std::time::Duration::from_millis(
|
||||
let mut shutdown_interval = tokio::time::interval(Duration::from_millis(
|
||||
scheduler_settings.graceful_shutdown_interval,
|
||||
));
|
||||
|
||||
|
||||
@ -254,7 +254,7 @@ pub fn get_time_from_delta(delta: Option<i32>) -> Option<time::PrimitiveDateTime
|
||||
}
|
||||
|
||||
#[instrument(skip_all)]
|
||||
pub async fn consumer_operation_handler<E, T: Send + Sync + 'static>(
|
||||
pub async fn consumer_operation_handler<E, T>(
|
||||
state: T,
|
||||
settings: sync::Arc<SchedulerSettings>,
|
||||
error_handler_fun: E,
|
||||
@ -263,7 +263,7 @@ pub async fn consumer_operation_handler<E, T: Send + Sync + 'static>(
|
||||
) where
|
||||
// Error handler function
|
||||
E: FnOnce(error_stack::Report<errors::ProcessTrackerError>),
|
||||
T: SchedulerAppState,
|
||||
T: SchedulerAppState + Send + Sync + 'static,
|
||||
{
|
||||
consumer_operation_counter.fetch_add(1, atomic::Ordering::SeqCst);
|
||||
let start_time = std_time::Instant::now();
|
||||
|
||||
Reference in New Issue
Block a user