mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
L-M: Only create rescheduler when rescheduling
Co-authored-by: Jarrett Ye <jarrett.ye@outlook.com>
This commit is contained in:
parent
fed5bc9ea6
commit
7b309a300e
1 changed files with 3 additions and 2 deletions
|
@ -159,8 +159,9 @@ impl Collection {
|
|||
&mut on_updated_card,
|
||||
)?;
|
||||
|
||||
let mut rescheduler = self
|
||||
.get_config_bool(BoolKey::LoadBalancerEnabled)
|
||||
let mut rescheduler = req
|
||||
.reschedule
|
||||
.bitand(self.get_config_bool(BoolKey::LoadBalancerEnabled))
|
||||
.then(|| Rescheduler::new(self))
|
||||
.transpose()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue