refactor: make App.prototype.handler() sync#2906
refactor: make App.prototype.handler() sync#2906marvinhagemeister merged 2 commits intodenoland:mainfrom
App.prototype.handler() sync#2906Conversation
marvinhagemeister
left a comment
There was a problem hiding this comment.
The underlying buildCache.fromSnapshot() function is still async. By making app.handler() sync, this PR introduces a race condition where a request might be coming in before the snapshot is restored. In this case we go through the error handling logic and will show an error.
For production servers this is not an acceptable way to handle client traffic.
This PR also makes |
Oh apologies, I missed that in the changes. In that case it makes sense. |
No description provided.