⚡ 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:
		| @@ -51,10 +51,12 @@ func main() { | ||||
| 	} | ||||
|  | ||||
| 	// Preheat processes | ||||
| 	log.Info().Msg("Preheating processes...") | ||||
| 	sign.App.PreheatProcesses(func(total int, success int) { | ||||
| 		log.Info().Int("requested", total).Int("succeed", success).Msgf("Preheat processes completed!") | ||||
| 	}) | ||||
| 	go func() { | ||||
| 		log.Info().Msg("Preheating processes...") | ||||
| 		sign.App.PreheatProcesses(func(total int, success int) { | ||||
| 			log.Info().Int("requested", total).Int("succeed", success).Msgf("Preheat processes completed!") | ||||
| 		}) | ||||
| 	}() | ||||
|  | ||||
| 	// Init hypertext server | ||||
| 	hypertext.RunServer( | ||||
|   | ||||
| @@ -5,4 +5,4 @@ rules: | ||||
| upstreams: | ||||
|   - id: example | ||||
|     name: Benchmarking Data | ||||
|     uri: files://../data/spa | ||||
|     uri: files://../data/spa?fallback=index.html | ||||
|   | ||||
		Reference in New Issue
	
	Block a user