refactor: shut down more quickly
1 file changed, 3 insertions(+), 1 deletion(-)
changed files
M web/searchix.go → web/searchix.go
@@ -56,5 +56,7 @@ } func (s *Server) Stop() { <-s.sv.Stop() - s.sentryHub.Flush(2 * time.Second) + if s.cfg.Web.Environment == "production" { + s.sentryHub.Flush(2 * time.Second) + } }