Don't create enviroment more than once

This commit is contained in:
Simon Willnauer 2016-06-20 11:45:52 +02:00
parent cfa4689445
commit fb713774a1
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ public class Node implements Closeable {
resourcesToClose.add(circuitBreakerService);
modules.add(settingsModule);
modules.add(b -> {
b.bind(Environment.class).toInstance(new Environment(settings));
b.bind(Environment.class).toInstance(environment);
b.bind(ThreadPool.class).toInstance(threadPool);
b.bind(NodeEnvironment.class).toInstance(nodeEnvironment);
b.bind(TribeService.class).toInstance(tribeService);