Skip to content

Commit

Permalink
patch: fix log timing for rotation flow
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenSrcerer committed Apr 16, 2024
1 parent 59090b8 commit 71bd6ab
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ class MqttAuthorizationController(

// Remove element from deduplication set after 60s
Mono.just(true)
.doOnSubscribe { Log.info("[JWT-ROTATOR] Removing <$sub> from deduplication set.") }
.delayElement(Duration.ofSeconds(60))
.doOnSuccess { rotationDeduplicationSet.remove(sub) }
.doOnSuccess {
Log.info("[JWT-ROTATOR] Removing <$sub> from deduplication set.")
rotationDeduplicationSet.remove(sub)
}
.subscribe()
}

Expand Down

0 comments on commit 71bd6ab

Please sign in to comment.