Added ability to add to an endpoint configuration
This commit is contained in:
parent
2828758fee
commit
1e077c2d98
|
@ -429,7 +429,7 @@ open class Client<CONNECTION : Connection>(config: Configuration = Configuration
|
|||
}
|
||||
|
||||
logger.info("Adding new signature for ${IP.toString(remoteAddress)} : ${Sys.bytesToHex(connectionInfo.publicKey)}")
|
||||
settingsStore.addRegisteredServerKey(remoteAddress, connectionInfo.publicKey)
|
||||
storage.addRegisteredServerKey(remoteAddress, connectionInfo.publicKey)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ abstract class BaseTest {
|
|||
|
||||
companion object {
|
||||
const val LOOPBACK = "loopback"
|
||||
fun clientConfig(): Configuration {
|
||||
fun clientConfig(block: Configuration.() -> Unit = {}): Configuration {
|
||||
val configuration = Configuration()
|
||||
configuration.settingsStore = MemoryStore.type() // don't want to persist anything on disk!
|
||||
configuration.subscriptionPort = 2000
|
||||
|
@ -80,7 +80,7 @@ abstract class BaseTest {
|
|||
return configuration
|
||||
}
|
||||
|
||||
fun serverConfig(): ServerConfiguration {
|
||||
fun serverConfig(block: ServerConfiguration.() -> Unit = {}): ServerConfiguration {
|
||||
val configuration = ServerConfiguration()
|
||||
configuration.settingsStore = MemoryStore.type() // don't want to persist anything on disk!
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user