remove channel close

This commit is contained in:
Balakrishnan Balasubramanian 2024-12-17 18:16:38 -05:00
parent 79256b0440
commit 47ee5fb4f4

View File

@ -233,7 +233,6 @@ func Serve(addr string, h http.Handler) (addrType AddressType, srv *http.Server,
waitErrChan := make(chan error) waitErrChan := make(chan error)
go func() { go func() {
waitErrChan <- srv.Serve(listener) waitErrChan <- srv.Serve(listener)
close(waitErrChan)
}() }()
go func() { go func() {
select { select {