Skip to content

Commit 2a62530

Browse files
committed
feat: from pool needs not be async
1 parent 8165a7c commit 2a62530

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ impl SqlxPostgresqlSessionStore {
117117
Self::builder(connection_string).build().await
118118
}
119119

120-
pub async fn from_pool(pool: Arc<Pool<Postgres>>) -> SqlxPostgresqlSessionStoreBuilder {
121-
SqlxPostgresqlSessionStoreBuilder {
122-
connection_data: ConnectionPool(pool),
120+
pub fn from_pool(pool: Arc<Pool<Postgres>>) -> SqlxPostgresqlSessionStore {
121+
SqlxPostgresqlSessionStore {
122+
client_pool: pool,
123123
configuration: CacheConfiguration::default(),
124124
}
125125
}

0 commit comments

Comments
 (0)