mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 05:43:41 +03:00
Add prewarming for asset resolver in OctoHTTPServer initialization
This commit is contained in:
@@ -131,6 +131,7 @@ func NewOctoHTTPServer(resourcesBaseURL string) *OctoHTTPServer {
|
||||
revisions: newRevisionTracker(),
|
||||
resolver: newAssetResolver(),
|
||||
}
|
||||
s.resolver.Prewarm("0")
|
||||
s.mux.HandleFunc("/", s.handleAll)
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user