Skip to content

Commit

Permalink
we've gone full circle
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoffman committed Nov 17, 2023
1 parent d923849 commit 42d1387
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/server/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ func (s *credServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
w.WriteHeader(200)
_ = r.Body.Close()
_ = s.server.Shutdown(context.Background())
go func() {
_ = s.server.Shutdown(context.Background())
}()
}

// Input receives configuration via HTTP on the port and returns it decoded
Expand Down

0 comments on commit 42d1387

Please sign in to comment.