⚡ Move preheat operation in the goroutine
All checks were successful
release-nightly / build-docker (push) Successful in 1m7s
All checks were successful
release-nightly / build-docker (push) Successful in 1m7s
This commit is contained in:
parent
996e52a5f9
commit
ed1b20873d
@ -51,10 +51,12 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Preheat processes
|
// Preheat processes
|
||||||
log.Info().Msg("Preheating processes...")
|
go func() {
|
||||||
sign.App.PreheatProcesses(func(total int, success int) {
|
log.Info().Msg("Preheating processes...")
|
||||||
log.Info().Int("requested", total).Int("succeed", success).Msgf("Preheat processes completed!")
|
sign.App.PreheatProcesses(func(total int, success int) {
|
||||||
})
|
log.Info().Int("requested", total).Int("succeed", success).Msgf("Preheat processes completed!")
|
||||||
|
})
|
||||||
|
}()
|
||||||
|
|
||||||
// Init hypertext server
|
// Init hypertext server
|
||||||
hypertext.RunServer(
|
hypertext.RunServer(
|
||||||
|
@ -5,4 +5,4 @@ rules:
|
|||||||
upstreams:
|
upstreams:
|
||||||
- id: example
|
- id: example
|
||||||
name: Benchmarking Data
|
name: Benchmarking Data
|
||||||
uri: files://../data/spa
|
uri: files://../data/spa?fallback=index.html
|
||||||
|
Loading…
Reference in New Issue
Block a user