ObservableTunnel: Don't cache configAsync
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
c547d033c3
commit
3095e19e13
@ -71,7 +71,8 @@ class ObservableTunnel internal constructor(
|
|||||||
}
|
}
|
||||||
private set
|
private set
|
||||||
|
|
||||||
val configAsync: CompletionStage<Config> = if (config == null)
|
val configAsync: CompletionStage<Config>
|
||||||
|
get() = if (config == null)
|
||||||
manager.getTunnelConfig(this)
|
manager.getTunnelConfig(this)
|
||||||
else
|
else
|
||||||
CompletableFuture.completedFuture(config)
|
CompletableFuture.completedFuture(config)
|
||||||
|
Loading…
Reference in New Issue
Block a user