diff options
Diffstat (limited to 'http/http.go')
| -rw-r--r-- | http/http.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/http/http.go b/http/http.go index 71075a7..42d8f4f 100644 --- a/http/http.go +++ b/http/http.go @@ -10,6 +10,7 @@ import ( "time" "go.sudomsg.com/kit/logging" + netkit "go.sudomsg.com/kit/net" "golang.org/x/sync/errgroup" ) @@ -22,7 +23,7 @@ import ( // Each server logs startup, shutdown, and errors. // // This function blocks until all servers have stopped or an error occurs. -func RunHTTPServers(ctx context.Context, lns Listeners, handler http.Handler) error { +func RunHTTPServers(ctx context.Context, lns netkit.Listeners, handler http.Handler) error { g, ctx := errgroup.WithContext(ctx) for _, ln := range lns { |
