@@ -118,7 +118,7 @@ impl RequestDispatcher<'_> {
118
118
}
119
119
return self ;
120
120
}
121
- self . on_with_thread_intent :: < true , ALLOW_RETRYING , R > (
121
+ self . on_with_thread_intent :: < false , ALLOW_RETRYING , R > (
122
122
ThreadIntent :: Worker ,
123
123
f,
124
124
Self :: content_modified_error,
@@ -147,7 +147,7 @@ impl RequestDispatcher<'_> {
147
147
}
148
148
return self ;
149
149
}
150
- self . on_with_thread_intent :: < true , false , R > ( ThreadIntent :: Worker , f, on_cancelled)
150
+ self . on_with_thread_intent :: < false , false , R > ( ThreadIntent :: Worker , f, on_cancelled)
151
151
}
152
152
153
153
/// Dispatches a non-latency-sensitive request onto the thread pool. When the VFS is marked not
@@ -166,7 +166,7 @@ impl RequestDispatcher<'_> {
166
166
}
167
167
return self ;
168
168
}
169
- self . on_with_thread_intent :: < true , ALLOW_RETRYING , R > (
169
+ self . on_with_thread_intent :: < false , ALLOW_RETRYING , R > (
170
170
ThreadIntent :: Worker ,
171
171
f,
172
172
Self :: content_modified_error,
@@ -193,7 +193,7 @@ impl RequestDispatcher<'_> {
193
193
}
194
194
return self ;
195
195
}
196
- self . on_with_thread_intent :: < true , ALLOW_RETRYING , R > (
196
+ self . on_with_thread_intent :: < false , ALLOW_RETRYING , R > (
197
197
ThreadIntent :: LatencySensitive ,
198
198
f,
199
199
Self :: content_modified_error,
@@ -212,7 +212,7 @@ impl RequestDispatcher<'_> {
212
212
R :: Params : DeserializeOwned + panic:: UnwindSafe + Send + fmt:: Debug ,
213
213
R :: Result : Serialize ,
214
214
{
215
- self . on_with_thread_intent :: < false , false , R > (
215
+ self . on_with_thread_intent :: < true , false , R > (
216
216
ThreadIntent :: LatencySensitive ,
217
217
f,
218
218
Self :: content_modified_error,
@@ -231,7 +231,7 @@ impl RequestDispatcher<'_> {
231
231
}
232
232
}
233
233
234
- fn on_with_thread_intent < const MAIN_POOL : bool , const ALLOW_RETRYING : bool , R > (
234
+ fn on_with_thread_intent < const RUSTFMT : bool , const ALLOW_RETRYING : bool , R > (
235
235
& mut self ,
236
236
intent : ThreadIntent ,
237
237
f : fn ( GlobalStateSnapshot , R :: Params ) -> anyhow:: Result < R :: Result > ,
@@ -251,10 +251,10 @@ impl RequestDispatcher<'_> {
251
251
tracing:: debug!( ?params) ;
252
252
253
253
let world = self . global_state . snapshot ( ) ;
254
- if MAIN_POOL {
255
- & mut self . global_state . task_pool . handle
256
- } else {
254
+ if RUSTFMT {
257
255
& mut self . global_state . fmt_pool . handle
256
+ } else {
257
+ & mut self . global_state . task_pool . handle
258
258
}
259
259
. spawn ( intent, move || {
260
260
let result = panic:: catch_unwind ( move || {
0 commit comments