From 8fe00685067aed11b5f23478d7036bc4c71e047e Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Sun, 5 May 2024 11:56:09 +0200 Subject: [PATCH] Remove guava import (#1747) --- .../java/io/kroki/server/service/KrokiBlockedThreadChecker.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/src/main/java/io/kroki/server/service/KrokiBlockedThreadChecker.java b/server/src/main/java/io/kroki/server/service/KrokiBlockedThreadChecker.java index 8f651fe10..e4bdbdd0d 100644 --- a/server/src/main/java/io/kroki/server/service/KrokiBlockedThreadChecker.java +++ b/server/src/main/java/io/kroki/server/service/KrokiBlockedThreadChecker.java @@ -2,7 +2,6 @@ import com.github.benmanes.caffeine.cache.Cache; import com.github.benmanes.caffeine.cache.Caffeine; -import com.google.common.annotations.VisibleForTesting; import io.vertx.core.Vertx; import io.vertx.core.VertxException; import io.vertx.core.VertxOptions; @@ -70,7 +69,6 @@ private long nonExpiredEntryCount(Cache stats) { return stats.asMap().entrySet().stream().filter(e -> e.getValue().isAfter(now)).count(); } - @VisibleForTesting void trackBlockedThread(BlockedThreadEvent bte) { if (bte.duration() > bte.warningExceptionTime()) { if (bte.thread().getName().startsWith("vert.x-worker-thread")) {