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(+), 1 deletion(-)

changed files
M cmd/searchix-web/main.gocmd/searchix-web/main.go
@@ -163,8 +163,10 @@
wg := &sync.WaitGroup{} wg.Add(1) go func() { + sCtx, cancel := context.WithCancel(ctx) defer wg.Done() - err := s.Start(*dev) + defer cancel() + err := s.Start(sCtx, *dev) if err != nil && !errors.Is(err, context.Canceled) { // Error starting or closing listener: logger.Fatal("error", "error", err)