Skip to content

Commit 5ab6135

Browse files
committed
Remove unnecessary cleanup logic for the waiting chain in ApiManager
1 parent fac0efe commit 5ab6135

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

apps/editor/src/services/api-manager.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ export class ApiManager {
5757
is_chain_resolution_scheduled = true
5858
setTimeout(() => {
5959
chain_entry.resolve()
60-
61-
const current_entry = this.waiting_chain.get(params.endpoint_url)
62-
if (current_entry && current_entry.resolve === resolve_current) {
63-
this.waiting_chain.delete(params.endpoint_url)
64-
}
6560
}, CHAIN_RESOLUTION_DELAY_MS)
6661
}
6762
}
@@ -157,10 +152,6 @@ export class ApiManager {
157152
// Unblock anyone waiting for this request if it was the one in the chain
158153
if (!is_chain_resolution_scheduled) {
159154
resolve_current()
160-
const chain_entry = this.waiting_chain.get(params.endpoint_url)
161-
if (chain_entry && chain_entry.resolve === resolve_current) {
162-
this.waiting_chain.delete(params.endpoint_url)
163-
}
164155
}
165156

166157
this.panel_provider.send_message({

0 commit comments

Comments
 (0)