Skip to content

Commit

Permalink
Explicitly not await pollHotReloadEndpoint (downstream sync issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen committed May 10, 2024
1 parent e1228e3 commit ddb5723
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mesop/web/src/services/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,9 @@ export class Channel {
const text = await response.text();
this.hotReloadCounter = Number(text);
this.hotReload();
pollHotReloadEndpoint();
this.hotReloadBackoffCounter = 0;
// Use void to explicitly not await to avoid downstream sync issue.
void pollHotReloadEndpoint();
} else {
throw new Error(`Server responded with status: ${response.status}`);
}
Expand Down

0 comments on commit ddb5723

Please sign in to comment.