From 3689de7c00bed9151f868b823f3d9336e36b81e7 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 6 Sep 2024 19:00:33 +0530 Subject: [PATCH] feat: use 8080 for docs --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index d0824ce..dd0cafc 100755 --- a/main.go +++ b/main.go @@ -20,6 +20,7 @@ const ( initialRetryDelay = 5 * time.Second maxRetryDelay = 5 * time.Minute cacheTTL = 3600 // 1 hour in seconds + httpPort = 8080 ) var ( @@ -58,8 +59,9 @@ func main() { func startHTTPServer() { http.Handle("/", http.FileServer(http.Dir("docs"))) - log.Printf("Starting HTTP server on port 80") - err := http.ListenAndServe(":80", nil) + + log.Printf("Starting HTTP server on port %d", httpPort) + err := http.ListenAndServe(fmt.Sprintf(":%d", httpPort), nil) if err != nil { log.Fatalf("Failed to start HTTP server: %s\n", err.Error()) }