Skip to content

Commit

Permalink
fix: add break statements when not discovered service was found
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Selivanov committed May 29, 2023
1 parent 43e9126 commit e636c12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func (p *ServicesPool) DiscoverServices() error {
if p.onDiscRemoveCallback != nil {
p.onDiscRemoveCallback(srv)
}
break
}
}

Expand All @@ -150,6 +151,7 @@ func (p *ServicesPool) DiscoverServices() error {
if p.onDiscRemoveCallback != nil {
p.onDiscRemoveCallback(srv)
}
break
}
}

Expand Down

0 comments on commit e636c12

Please sign in to comment.