From: David ‘Bombe’ Roden Date: Fri, 1 Nov 2019 17:39:25 +0000 (+0100) Subject: 🎨 Use time units for clearer code X-Git-Tag: v81^2~90 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=631486ae748d8ba85068688685da13df746feafa 🎨 Use time units for clearer code --- diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt index b7a48dd..1e83cd7 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt @@ -20,6 +20,7 @@ package net.pterodactylus.sone.freenet.wot import com.google.common.eventbus.* import com.google.inject.* import net.pterodactylus.util.service.* +import java.util.concurrent.TimeUnit.* import java.util.logging.* import java.util.logging.Logger.* @@ -71,7 +72,7 @@ class IdentityManagerImpl @Inject constructor( } /* wait a minute before checking again. */ - sleep((60 * 1000).toLong()) + sleep(SECONDS.toMillis(60)) } }