mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-28 13:05:16 +01:00
30 seconds of protocol auto detect cache
This commit is contained in:
parent
8dd19d0230
commit
c2b26a1c43
@ -27,7 +27,7 @@ import java.util.concurrent.TimeUnit
|
||||
|
||||
object ProtocolDetector {
|
||||
private val SERVER_VER = CacheBuilder.newBuilder()
|
||||
.expireAfterAccess(100, TimeUnit.SECONDS)
|
||||
.expireAfterAccess(30, TimeUnit.SECONDS)
|
||||
.build<InetSocketAddress, CompletableFuture<ProtocolVersion>>(CacheLoader.from { address ->
|
||||
val future = CompletableFuture<ProtocolVersion>()
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user