We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6227956 commit 5107aafCopy full SHA for 5107aaf
src/controllers/krate/metadata.rs
@@ -123,8 +123,10 @@ pub async fn find_crate(
123
.filter(|_| include.default_version && !include.versions)
124
{
125
let version = krate.find_version(&mut conn, default_version).await?;
126
- let published_by = version.published_by(&mut conn).await?;
127
- let actions = VersionOwnerAction::by_version(&mut conn, &version).await?;
+ let (actions, published_by) = tokio::try_join!(
+ VersionOwnerAction::by_version(&mut conn, &version),
128
+ version.published_by(&mut conn),
129
+ )?;
130
versions_publishers_and_audit_actions = Some(vec![(version, published_by, actions)]);
131
};
132
0 commit comments