refactor: make App.prototype.handler() sync (#2906)
This commit is contained in:
+5
-4
@@ -243,11 +243,12 @@ export class App<State> {
|
||||
return this;
|
||||
}
|
||||
|
||||
async handler(): Promise<
|
||||
(request: Request, info?: Deno.ServeHandlerInfo) => Promise<Response>
|
||||
> {
|
||||
handler(): (
|
||||
request: Request,
|
||||
info?: Deno.ServeHandlerInfo,
|
||||
) => Promise<Response> {
|
||||
if (this.#buildCache === null) {
|
||||
this.#buildCache = await ProdBuildCache.fromSnapshot(
|
||||
this.#buildCache = ProdBuildCache.fromSnapshot(
|
||||
this.config,
|
||||
this.#islandRegistry.size,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user