chore: further minor lint fixes

This commit is contained in:
Jakob Borg
2025-05-20 15:04:33 +02:00
parent 96b03fac04
commit 0a58747eb2
8 changed files with 25 additions and 17 deletions
+2 -2
View File
@@ -8,6 +8,7 @@ package model
import (
"context"
"errors"
"fmt"
"time"
@@ -16,7 +17,7 @@ import (
"github.com/thejerf/suture/v4"
)
var errSvcNotFound = fmt.Errorf("service not found")
var errSvcNotFound = errors.New("service not found")
// A serviceMap is a utility map of arbitrary keys to a suture.Service of
// some kind, where adding and removing services ensures they are properly
@@ -65,7 +66,6 @@ func (s *serviceMap[K, S]) Stop(k K) {
if tok, ok := s.tokens[k]; ok {
s.supervisor.Remove(tok)
}
return
}
// StopAndWaitChan removes the service at the given key from the supervisor,