Merge e32c48e396a1745890fa3148bb229000161e687c into c35bde97d5380b48e7736742c3477c08c68047df

This commit is contained in:
Zhiheng Lin 2022-08-01 08:07:24 +09:00 committed by GitHub
commit f5dd3dd68b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1834,7 +1834,7 @@ func main() {
// Initializing the server in a goroutine so that
// it won't block the graceful shutdown handling below
go func() {
if err := srv.ListenAndServe(); err != nil && errors.Is(err, http.ErrServerClosed) {
if err := srv.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
log.Printf("listen: %s\n", err)
}
}()