File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ impl LocalLoader {
94
94
} )
95
95
. collect :: < Result < Vec < _ > > > ( ) ?;
96
96
97
- warn_if_component_load_slothful ( ) ;
97
+ let sloth_guard = warn_if_component_load_slothful ( ) ;
98
98
99
99
// Load all components concurrently
100
100
let components = try_join_all ( components. into_iter ( ) . map ( |( id, c) | async move {
@@ -104,6 +104,8 @@ impl LocalLoader {
104
104
} ) )
105
105
. await ?;
106
106
107
+ drop ( sloth_guard) ;
108
+
107
109
Ok ( LockedApp {
108
110
spin_lock_version : Default :: default ( ) ,
109
111
metadata,
@@ -522,6 +524,6 @@ fn file_url(path: impl AsRef<Path>) -> Result<String> {
522
524
const SLOTH_WARNING_DELAY_MILLIS : u64 = 1250 ;
523
525
524
526
fn warn_if_component_load_slothful ( ) -> sloth:: SlothGuard {
525
- let message = "WASM components loading is taking a few seconds..." ;
527
+ let message = "Loading Wasm components is taking a few seconds..." ;
526
528
sloth:: warn_if_slothful ( SLOTH_WARNING_DELAY_MILLIS , format ! ( "{message}\n " ) )
527
529
}
Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ impl OciLoader {
24
24
25
25
/// Pulls and loads an OCI Artifact and returns a LockedApp with the given OCI client and reference
26
26
pub async fn load_app ( & self , client : & mut Client , reference : & str ) -> Result < LockedApp > {
27
- // Fix: https://github.com/fermyon/spin/issues/2109.
28
- println ! ( "pulling spin application from registry reference {reference:?}..." ) ;
29
-
30
27
// Fetch app
31
28
client. pull ( reference) . await . with_context ( || {
32
29
format ! ( "cannot pull Spin application from registry reference {reference:?}" )
You can’t perform that action at this time.
0 commit comments