Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(BOUN): dont use borrow and borrow_mut at same time #2631

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -631,26 +631,20 @@ fn post_upgrade_fn() {

// REGISTRATION_EXPIRATION_TTL
REGISTRATION_EXPIRATION_TTL.with(|s| {
s.borrow_mut().insert(
(), //
s.borrow().get(&()).unwrap_or(3 * DAY), //
)
let v = s.borrow().get(&()).unwrap_or(3 * DAY);
s.borrow_mut().insert((), v)
});

// IN_PROGRESS_TTL
IN_PROGRESS_TTL.with(|s| {
s.borrow_mut().insert(
(), //
s.borrow().get(&()).unwrap_or(10 * MINUTE), //
)
let v = s.borrow().get(&()).unwrap_or(10 * MINUTE);
s.borrow_mut().insert((), v)
});

// MANAGEMENT_TASK_INTERVAL
MANAGEMENT_TASK_INTERVAL.with(|s| {
s.borrow_mut().insert(
(), //
s.borrow().get(&()).unwrap_or(MINUTE), //
)
let v = s.borrow().get(&()).unwrap_or(MINUTE);
s.borrow_mut().insert((), v)
});

init_timers_fn();
Expand Down