mirror of
https://github.com/corda/corda.git
synced 2025-06-18 15:18:16 +00:00
Add exponential backoff to P2P messaging retry (#2975)
This commit is contained in:
@ -16,6 +16,7 @@ import java.net.Proxy
|
||||
import java.net.URL
|
||||
import java.nio.file.Path
|
||||
import java.nio.file.Paths
|
||||
import java.time.Duration
|
||||
import java.time.Instant
|
||||
import java.time.LocalDate
|
||||
import java.time.temporal.Temporal
|
||||
@ -104,6 +105,7 @@ private fun Config.getSingleValue(path: String, type: KType): Any? {
|
||||
Double::class -> getDouble(path)
|
||||
Boolean::class -> getBoolean(path)
|
||||
LocalDate::class -> LocalDate.parse(getString(path))
|
||||
Duration::class -> getDuration(path)
|
||||
Instant::class -> Instant.parse(getString(path))
|
||||
NetworkHostAndPort::class -> NetworkHostAndPort.parse(getString(path))
|
||||
Path::class -> Paths.get(getString(path))
|
||||
|
Reference in New Issue
Block a user