diff options
author | Marc Pervaz Boocha <mboocha@sudomsg.com> | 2025-08-07 23:27:04 +0530 |
---|---|---|
committer | Marc Pervaz Boocha <mboocha@sudomsg.com> | 2025-08-07 23:27:04 +0530 |
commit | d6a383ce983811c080d3bfbfd632189241cf27ae (patch) | |
tree | a94d60e398d3a2ef3771d0e853dc29773530e835 | |
parent | Added Better stack traces on panic and auto setup a sensible default (diff) | |
download | kit-main.tar kit-main.tar.gz kit-main.tar.bz2 kit-main.tar.lz kit-main.tar.xz kit-main.tar.zst kit-main.zip |
-rw-r--r-- | http/http.go | 7 | ||||
-rw-r--r-- | http/systemd_linux.go | 3 |
2 files changed, 5 insertions, 5 deletions
diff --git a/http/http.go b/http/http.go index 063c1e8..71075a7 100644 --- a/http/http.go +++ b/http/http.go @@ -2,12 +2,15 @@ package http import ( "context" + "errors" "fmt" - "go.sudomsg.com/kit/logging" - "golang.org/x/sync/errgroup" "log/slog" "net" "net/http" + "time" + + "go.sudomsg.com/kit/logging" + "golang.org/x/sync/errgroup" ) // RunHTTPServers runs HTTP servers concurrently on all provided listeners. diff --git a/http/systemd_linux.go b/http/systemd_linux.go index 817b421..9b52bd6 100644 --- a/http/systemd_linux.go +++ b/http/systemd_linux.go @@ -4,7 +4,6 @@ package http import ( "fmt" - "net" "os" "strconv" @@ -57,5 +56,3 @@ func getSystemdListeners() (Listeners, error) { return lns, nil } - - |