Refactoring related to BFT state persistence/transfer (#829)

* Remove unused type param
* If we drop Runnable we can use conciser syntax
* Sometimes we need the fully-fledged object, so retire separate handle class
* Implement IntelliJ suggestion
This commit is contained in:
Andrzej Cichocki
2017-06-14 09:57:46 +01:00
committed by GitHub
parent ec0e0dd442
commit 77ab6d4af3
8 changed files with 44 additions and 40 deletions

View File

@ -243,7 +243,7 @@ class MockNetwork(private val networkSendManuallyPumped: Boolean = false,
}
fun manuallyCloseDB() {
dbCloser?.run()
dbCloser?.invoke()
dbCloser = null
}