Skip to content

Commit e4884d7

Browse files
author
Łukasz Gąsior
committed
fix
1 parent dabf655 commit e4884d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/scala/io/iohk/ethereum/faucet/Faucet.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ object Faucet extends Logger {
1818
def main(args: Array[String]): Unit = {
1919
val config = FaucetConfig(ConfigFactory.load())
2020

21-
val rpcClient = new RpcClient(config.rpcAddress)
22-
val keyStore = new KeyStoreImpl(config.keyStoreDir, new SecureRandom())
23-
val api = new FaucetApi(rpcClient, keyStore, config)
24-
2521
implicit val system = ActorSystem("Faucet-system")
2622
implicit val materializer = ActorMaterializer()
2723

24+
val keyStore = new KeyStoreImpl(config.keyStoreDir, new SecureRandom())
25+
val rpcClient = new RpcClient(config.rpcAddress)
26+
val api = new FaucetApi(rpcClient, keyStore, config)
27+
2828
val bindingResultF = Http().bindAndHandle(api.route, config.listenInterface, config.listenPort)
2929

3030
bindingResultF onComplete {

0 commit comments

Comments
 (0)