Change address syntax to be a URL #3
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user