Skip to content

Commit b38b22e

Browse files
rmaticevicmjuraga
authored andcommitted
BUG/MINOR: consul: fix validation for service changed check
1 parent 3370eb2 commit b38b22e

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
@@ -190,7 +190,7 @@ func (c *consulInstance) hasServiceChanged(service string, index uint64) bool {
190190
if !ok {
191191
return true
192192
}
193-
return prevIndex == index
193+
return prevIndex != index
194194
}
195195

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

0 commit comments

Comments
 (0)