@@ -17,7 +17,7 @@ use tokio_util::io::StreamReader;
1717use crate :: connection:: config:: DatabaseConfig ;
1818use crate :: connection:: connection_manager:: InnerWalManager ;
1919use crate :: connection:: legacy:: MakeLegacyConnection ;
20- use crate :: connection:: { Connection as _, MakeConnection } ;
20+ use crate :: connection:: { Connection as _, MakeConnection , MakeThrottledConnection } ;
2121use crate :: database:: { PrimaryConnection , PrimaryConnectionMaker } ;
2222use crate :: error:: LoadDumpError ;
2323use crate :: namespace:: broadcasters:: BroadcasterHandle ;
@@ -380,7 +380,7 @@ pub(super) async fn make_stats(
380380// right after checkpointing is exactly where it should be done.
381381pub ( crate ) async fn run_storage_monitor < M : MakeConnection > (
382382 stats : Weak < Stats > ,
383- connection_maker : Arc < M > ,
383+ connection_maker : Arc < MakeThrottledConnection < M > > ,
384384) -> anyhow:: Result < ( ) > {
385385 // on initialization, the database file doesn't exist yet, so we wait a bit for it to be
386386 // created
@@ -392,7 +392,7 @@ pub(crate) async fn run_storage_monitor<M: MakeConnection>(
392392 return Ok ( ( ) ) ;
393393 } ;
394394
395- match connection_maker. create ( ) . await {
395+ match connection_maker. untracked ( ) . await {
396396 Ok ( conn) => {
397397 let _ = BLOCKING_RT
398398 . spawn_blocking ( move || {
0 commit comments