Skip to content

refactor: add get_scheduling_states_inner#5145

Open
Luc-Mcgrady wants to merge 1 commit into
ankitects:mainfrom
Luc-Mcgrady:get_scheduling_states_inner
Open

refactor: add get_scheduling_states_inner#5145
Luc-Mcgrady wants to merge 1 commit into
ankitects:mainfrom
Luc-Mcgrady:get_scheduling_states_inner

Conversation

@Luc-Mcgrady

Copy link
Copy Markdown
Contributor

closes #5144

let card = self.storage.get_card(cid)?.or_not_found(cid)?;

This call to the db is made even though the card is already fetched from the db by the function caller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary call to the db in get_queued_cards

1 participant