Skip to content

Commit ee0223d

Browse files
Replace futures_util::try_join! with futures_util::future::try_join
1 parent 13b8960 commit ee0223d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pg/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,11 @@ impl AsyncPgConnection {
445445
async fn set_config_options(&mut self) -> QueryResult<()> {
446446
use crate::run_query_dsl::RunQueryDsl;
447447

448-
futures_util::try_join!(
448+
futures_util::future::try_join(
449449
diesel::sql_query("SET TIME ZONE 'UTC'").execute(self),
450450
diesel::sql_query("SET CLIENT_ENCODING TO 'UTF8'").execute(self),
451-
)?;
451+
)
452+
.await?;
452453
Ok(())
453454
}
454455

0 commit comments

Comments
 (0)