Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Nov 21, 2023
1 parent 0653590 commit 240ee5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/canisters/user/impl/src/timer_job_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ pub enum TimerJob {
RetrySendingFailedMessages(Box<RetrySendingFailedMessagesJob>),
HardDeleteMessageContent(Box<HardDeleteMessageContentJob>),
DeleteFileReferences(DeleteFileReferencesJob),
MessageReminder(MessageReminderJob),
MessageReminder(Box<MessageReminderJob>),
RemoveExpiredEvents(RemoveExpiredEventsJob),
ProcessTokenSwap(ProcessTokenSwapJob),
ProcessTokenSwap(Box<ProcessTokenSwapJob>),
}

#[derive(Serialize, Deserialize, Clone)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ fn set_message_reminder_impl(args: Args, state: &mut RuntimeState) -> Response {
.message_index;

state.data.timer_jobs.enqueue_job(
TimerJob::MessageReminder(MessageReminderJob {
TimerJob::MessageReminder(Box::new(MessageReminderJob {
reminder_id,
chat: args.chat,
thread_root_message_index: args.thread_root_message_index,
event_index: args.event_index,
notes: args.notes,
reminder_created_message_index,
}),
})),
args.remind_at,
now,
);
Expand Down
4 changes: 2 additions & 2 deletions backend/canisters/user/impl/src/updates/swap_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ fn build_swap_client(args: &Args, state: &RuntimeState) -> Box<dyn SwapClient> {
fn enqueue_token_swap(token_swap: TokenSwap, attempt: u32, now: TimestampMillis, data: &mut Data) {
if attempt < 20 {
data.timer_jobs.enqueue_job(
TimerJob::ProcessTokenSwap(ProcessTokenSwapJob {
TimerJob::ProcessTokenSwap(Box::new(ProcessTokenSwapJob {
token_swap,
attempt: attempt + 1,
}),
})),
now + 5 * SECOND_IN_MS,
now,
);
Expand Down

0 comments on commit 240ee5b

Please sign in to comment.