Skip to content

Commit c75026a

Browse files
committed
BUG/MINOR: consul: fix validation for service changed check
1 parent efb5f29 commit c75026a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discovery/consul_service_discovery_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func (c *consulInstance) hasServiceChanged(service string, index uint64) bool {
252252
if !ok {
253253
return true
254254
}
255-
return prevIndex == index
255+
return prevIndex != index
256256
}
257257

258258
func (c *consulInstance) updateTimeout(timeoutSeconds int) error {

0 commit comments

Comments
 (0)