Skip to content

Commit

Permalink
Merge pull request #18 from telekom/fix-loop-detection
Browse files Browse the repository at this point in the history
Fix loop detection
  • Loading branch information
WRichter72 authored Aug 23, 2024
2 parents f758295 + 719c2aa commit 9cb2ef0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
application-dev.yaml
application-dev*.yaml

### STS ###
.apt_generated
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
awaitilityVersion=4.2.0
httpClientVersion=4.5.14
mockitoInlineVersion=5.2.0
horizonParentVersion=4.2.0
horizonParentVersion=4.2.1
wiremockStandaloneVersion=3.3.1
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void openCircuitBreaker(String subscriptionId, String eventType, String o
if (result.isPresent()) {
CircuitBreakerMessage existingCircuitBreakerMessage = result.get();
newCircuitBreakerMessage.setLoopCounter(existingCircuitBreakerMessage.getLoopCounter());
newCircuitBreakerMessage.setLastOpened(Date.from(Instant.now()));
newCircuitBreakerMessage.setLastOpened(existingCircuitBreakerMessage.getLastOpened());
}
circuitBreakerCache.set(subscriptionId, newCircuitBreakerMessage);
} catch (JsonCacheException e) {
Expand Down

0 comments on commit 9cb2ef0

Please sign in to comment.