@@ -118,7 +118,7 @@ impl Context {
118118 match & mut self . mode {
119119 Mode :: St => Ok ( st:: map ( self , items, f) . await ) ,
120120 Mode :: Mt { threads } => {
121- let threads = threads. get ( threads. concurrency ( ) ) . await ?;
121+ let threads = threads. get ( threads. concurrency ( ) ) ?;
122122 mt:: map ( threads, items, f, weight) . await
123123 }
124124 }
@@ -138,7 +138,7 @@ impl Context {
138138 match & mut self . mode {
139139 Mode :: St => Ok ( st:: join ( self , a, b) . await ) ,
140140 Mode :: Mt { threads } => {
141- let threads = threads. get ( 2 ) . await ?;
141+ let threads = threads. get ( 2 ) ?;
142142 mt:: join ( threads, a, b) . await
143143 }
144144 }
@@ -167,7 +167,7 @@ impl Context {
167167 match & mut self . mode {
168168 Mode :: St => Ok ( st:: try_join ( self , a, b) . await ) ,
169169 Mode :: Mt { threads } => {
170- let threads = threads. get ( 2 ) . await ?;
170+ let threads = threads. get ( 2 ) ?;
171171 mt:: try_join ( threads, a, b) . await
172172 }
173173 }
@@ -192,7 +192,7 @@ impl Context {
192192 match & mut self . mode {
193193 Mode :: St => Ok ( st:: try_join3 ( self , a, b, c) . await ) ,
194194 Mode :: Mt { threads } => {
195- let threads = threads. get ( 3 ) . await ?;
195+ let threads = threads. get ( 3 ) ?;
196196 mt:: try_join3 ( threads, a, b, c) . await
197197 }
198198 }
@@ -220,7 +220,7 @@ impl Context {
220220 match & mut self . mode {
221221 Mode :: St => Ok ( st:: try_join4 ( self , a, b, c, d) . await ) ,
222222 Mode :: Mt { threads } => {
223- let threads = threads. get ( 4 ) . await ?;
223+ let threads = threads. get ( 4 ) ?;
224224 mt:: try_join4 ( threads, a, b, c, d) . await
225225 }
226226 }
0 commit comments