Fix various bugs

This commit is contained in:
Jon Staab
2025-10-22 11:03:29 -07:00
parent 45716de712
commit b68701ae59
6 changed files with 61 additions and 40 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ func main() {
}
go func() {
fmt.Printf("running on :%s\n", port)
log.Printf("running on :%s\n", port)
if err := srv.ListenAndServe(); err != http.ErrServerClosed {
log.Printf("HTTP server error: %v\n", err)
}
@@ -44,7 +44,7 @@ func main() {
<-shutdown
fmt.Println("\nShutting down gracefully...")
log.Println("\nShutting down gracefully...")
shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 10*time.Second)
defer shutdownCancel()