@@ -53,7 +53,7 @@ pub async fn watch_registry(
5353 }
5454}
5555
56- fn start_registry_watcher ( context : & dyn Context ) -> Result < ( ) , Error > {
56+ fn start_registry_watcher < C : Context > ( context : & C ) -> Result < ( ) , Error > {
5757 let build_queue = context. runtime ( ) ?. block_on ( context. async_build_queue ( ) ) ?;
5858 let config = context. config ( ) ?;
5959 let index = context. index ( ) ?;
@@ -69,7 +69,7 @@ fn start_registry_watcher(context: &dyn Context) -> Result<(), Error> {
6969 Ok ( ( ) )
7070}
7171
72- pub fn start_background_repository_stats_updater ( context : & dyn Context ) -> Result < ( ) , Error > {
72+ pub fn start_background_repository_stats_updater < C : Context > ( context : & C ) -> Result < ( ) , Error > {
7373 // This call will still skip github repositories updates and continue if no token is provided
7474 // (gitlab doesn't require to have a token). The only time this can return an error is when
7575 // creating a pool or if config fails, which shouldn't happen here because this is run right at
@@ -91,7 +91,7 @@ pub fn start_background_repository_stats_updater(context: &dyn Context) -> Resul
9191 Ok ( ( ) )
9292}
9393
94- pub fn start_background_queue_rebuild ( context : & dyn Context ) -> Result < ( ) , Error > {
94+ pub fn start_background_queue_rebuild < C : Context > ( context : & C ) -> Result < ( ) , Error > {
9595 let runtime = context. runtime ( ) ?;
9696 let pool = context. pool ( ) ?;
9797 let config = context. config ( ) ?;
@@ -120,7 +120,7 @@ pub fn start_background_queue_rebuild(context: &dyn Context) -> Result<(), Error
120120 Ok ( ( ) )
121121}
122122
123- pub fn start_background_cdn_invalidator ( context : & dyn Context ) -> Result < ( ) , Error > {
123+ pub fn start_background_cdn_invalidator < C : Context > ( context : & C ) -> Result < ( ) , Error > {
124124 let metrics = context. instance_metrics ( ) ?;
125125 let config = context. config ( ) ?;
126126 let pool = context. pool ( ) ?;
0 commit comments