-
-
Notifications
You must be signed in to change notification settings - Fork 934
Optimize actor_language.rs #4612
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
Conversation
| convert_read_languages(conn, langs).await | ||
| }) as _ | ||
| }) | ||
| .await |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This transaction was added in #2510 and appears to be a mistake
|
|
||
| let forms = lang_ids | ||
| .into_iter() | ||
| .iter() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like these changes break the tests, and anyway that was fine. The rest looks very good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I now tried to fix the type mismatch error.
This change is needed to satisfy the borrow checker.
Pipelining: https://docs.rs/diesel-async/latest/diesel_async/pg/struct.AsyncPgConnection.html
Some changes to statements are to prevent the execution order of pipelined statements from making a difference