Skip to content

Commit

Permalink
pub settings and convert duration u64
Browse files Browse the repository at this point in the history
  • Loading branch information
taddes committed Dec 5, 2024
1 parent a843cf7 commit 8f4a11b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syncstorage-spanner/src/manager/deadpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::error::DbError;
pub(crate) type Conn = deadpool::managed::Object<SpannerSessionManager>;

pub(crate) struct SpannerSessionManager {
settings: SpannerSessionSettings,
pub settings: SpannerSessionSettings,
/// The gRPC environment
env: Arc<Environment>,
metrics: Metrics,
Expand Down
2 changes: 1 addition & 1 deletion syncstorage-spanner/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl SpannerDbPool {
let pool = self.pool.clone();
rt::spawn(async move {
loop {
sweeper(&pool, max_idle);
sweeper(&pool, Duration::from_secs(max_idle.into()));
rt::time::sleep(interval).await;
}
});
Expand Down

0 comments on commit 8f4a11b

Please sign in to comment.