From 175d49b463bac13662710de7d5314421bc5bd38f Mon Sep 17 00:00:00 2001 From: Panos Karampis Date: Tue, 24 Sep 2024 19:13:38 +0200 Subject: [PATCH] reduce time between role change --- .../promofacie/wallet_verification/service/RoleService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/dk/promofacie/wallet_verification/service/RoleService.java b/src/main/java/dk/promofacie/wallet_verification/service/RoleService.java index 56f2aa2..14ff28d 100644 --- a/src/main/java/dk/promofacie/wallet_verification/service/RoleService.java +++ b/src/main/java/dk/promofacie/wallet_verification/service/RoleService.java @@ -145,7 +145,7 @@ public Uni applyRoles() { .createFrom() .item(addRoles(entry.getKey(), member).get()) .onItem() - .delayIt().by(Duration.of(10, ChronoUnit.SECONDS)) + .delayIt().by(Duration.of(1, ChronoUnit.SECONDS)) .onItem() .invoke(RestAction::queue) .onItem() @@ -158,7 +158,7 @@ public Uni applyRoles() { .createFrom() .item(removeRoles(entry.getKey(), member).get()) .onItem() - .delayIt().by(Duration.of(10, ChronoUnit.SECONDS)) + .delayIt().by(Duration.of(1, ChronoUnit.SECONDS)) .onItem() .invoke(RestAction::queue) .onItem()