mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
lib/model: Remove spurious "replacing service" failure event (ref #9271)
This is no longer a notable condition, as we do this pretty much all the time.
This commit is contained in:
parent
a28de73031
commit
3850a08252
@ -46,7 +46,6 @@ func (s *serviceMap[K, S]) Add(k K, v S) {
|
|||||||
if tok, ok := s.tokens[k]; ok {
|
if tok, ok := s.tokens[k]; ok {
|
||||||
// There is already a service at this key, remove it first.
|
// There is already a service at this key, remove it first.
|
||||||
s.supervisor.Remove(tok)
|
s.supervisor.Remove(tok)
|
||||||
s.eventLogger.Log(events.Failure, fmt.Sprintf("%s replaced service at key %v", s, k))
|
|
||||||
}
|
}
|
||||||
s.services[k] = v
|
s.services[k] = v
|
||||||
s.tokens[k] = s.supervisor.Add(v)
|
s.tokens[k] = s.supervisor.Add(v)
|
||||||
|
Loading…
Reference in New Issue
Block a user