Skip to content

Commit 5e3ee78

Browse files
committed
Fix bug in server interruption handling
1 parent 8bb959e commit 5e3ee78

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: go
22

33
go:
44
- 1.13.x
5-
- master
65

76
script:
87
- make test

cmd/api/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ func main() {
5656

5757
go func() {
5858
logger.Info("Diagnostics server is preparing...")
59-
diag.ListenAndServe()
60-
err := server.ListenAndServe()
59+
err := diag.ListenAndServe()
6160
if err != nil && err != http.ErrServerClosed {
6261
shutdown <- err
6362
}

0 commit comments

Comments
 (0)