ObservableTunnel: do not cache stats
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
07b69be7bf
commit
870b2bf36d
@ -97,7 +97,8 @@ class ObservableTunnel internal constructor(
|
|||||||
}
|
}
|
||||||
private set
|
private set
|
||||||
|
|
||||||
val statisticsAsync: CompletionStage<Statistics> = if (statistics == null || statistics!!.isStale)
|
val statisticsAsync: CompletionStage<Statistics>
|
||||||
|
get() = if (statistics == null || statistics!!.isStale)
|
||||||
manager.getTunnelStatistics(this)
|
manager.getTunnelStatistics(this)
|
||||||
else
|
else
|
||||||
CompletableFuture.completedFuture(statistics)
|
CompletableFuture.completedFuture(statistics)
|
||||||
|
Loading…
Reference in New Issue
Block a user