all repos — searchix @ e766c8d6e4434b303246522ad29c4bc328de56ba

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

refactor: address linter issues

Alan Pearce
commit

e766c8d6e4434b303246522ad29c4bc328de56ba

parent

a34ba86c2c899bbf2902c4c99b817a9692c3294f

1 file changed, 3 insertions(+), 2 deletions(-)

changed files
M web/searchix.goweb/searchix.go
@@ -1,6 +1,7 @@
package web import ( + "context" "time" "alin.ovh/searchix/internal/config"
@@ -39,14 +40,14 @@ options: options,
}, nil } -func (s *Server) Start(liveReload bool) error { +func (s *Server) Start(ctx context.Context, liveReload bool) error { var err error s.sv, err = server.New(s.cfg, s.options, s.log.Named("server"), liveReload) if err != nil { return fault.Wrap(err, fmsg.With("error setting up server")) } - err = s.sv.Start() + err = s.sv.Start(ctx) if err != nil { return fault.Wrap(err, fmsg.With("error starting server")) }