chore: further minor lint fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user