all repos — searchix @ 90f16010ba6c54f9e215ed48873686a428bcb746

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: shut down more quickly

Alan Pearce
commit

90f16010ba6c54f9e215ed48873686a428bcb746

parent

1db432a56d503d60ccfafadfe6494f64cb8c325c

1 file changed, 3 insertions(+), 1 deletion(-)

changed files
M web/searchix.goweb/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) + } }