@@ -17,7 +17,7 @@ lazy_static! {
1717 static ref IS_BUNDLING_SCRIPT_LOADED : Mutex <CheckerState > = Mutex :: new( CheckerState :: default ( ) ) ;
1818
1919 /// A simple checker to check if the bundling function is done or not. It is used to block the program until bundling done.
20- static ref IS_COMPLIATION_WAIT : Arc <CompilationWait > = Arc :: new( CompilationWait :: default ( ) ) ;
20+ static ref IS_COMPILATION_WAIT : Arc <CompilationWait > = Arc :: new( CompilationWait :: default ( ) ) ;
2121}
2222static BUILD_SCRIPT : & str = include_str ! ( "./bundle.js" ) ;
2323const BUNDLING_FUNC : & str = "web_bundling" ;
@@ -111,7 +111,7 @@ impl<'a> WebBundler<'a> {
111111
112112 // Resolve callback when the bundling process is completed successfully
113113 fn resolve ( result : Box < dyn MetaCallValue > , _: Box < dyn Any > ) -> Box < dyn MetaCallValue > {
114- let compilation_wait = & * Arc :: clone ( & IS_COMPLIATION_WAIT ) ;
114+ let compilation_wait = & * Arc :: clone ( & IS_COMPILATION_WAIT ) ;
115115 let mut started = compilation_wait. checker . lock ( ) . unwrap ( ) ;
116116
117117 // Mark the process as completed and notify waiting threads
@@ -123,7 +123,7 @@ impl<'a> WebBundler<'a> {
123123
124124 // Reject callback for handling errors during the bundling process
125125 fn reject ( err : Box < dyn MetaCallValue > , _: Box < dyn Any > ) -> Box < dyn MetaCallValue > {
126- let compilation_wait = & * Arc :: clone ( & IS_COMPLIATION_WAIT ) ;
126+ let compilation_wait = & * Arc :: clone ( & IS_COMPILATION_WAIT ) ;
127127 let mut started = compilation_wait. checker . lock ( ) . unwrap ( ) ;
128128
129129 // Log the bundling error and mark the process as completed
@@ -151,12 +151,12 @@ impl<'a> WebBundler<'a> {
151151 future. then ( resolve) . catch ( reject) . await_fut ( ) ;
152152
153153 // Lock the mutex and wait for the bundling process to complete
154- let compilation_wait = Arc :: clone ( & IS_COMPLIATION_WAIT ) ;
154+ let compilation_wait = Arc :: clone ( & IS_COMPILATION_WAIT ) ;
155155 let mut started = compilation_wait. checker . lock ( ) . unwrap ( ) ;
156156
157157 // Block the current thread until the bundling process signals completion
158158 while !started. is_true ( ) {
159- started = Arc :: clone ( & IS_COMPLIATION_WAIT ) . cond . wait ( started) . unwrap ( ) ;
159+ started = Arc :: clone ( & IS_COMPILATION_WAIT ) . cond . wait ( started) . unwrap ( ) ;
160160 }
161161
162162 // Reset the checker state to false after the process completes
0 commit comments