Allow the environment to manage the Tor exit node manager's lifecycle.

This commit is contained in:
Jon Chambers
2021-05-06 15:31:59 -04:00
committed by Jon Chambers
parent 8e68e0e037
commit f0a8b5a54a

View File

@@ -454,6 +454,7 @@ public class WhisperServerService extends Application<WhisperServerConfiguration
environment.lifecycle().manage(messagePersister);
environment.lifecycle().manage(clientPresenceManager);
environment.lifecycle().manage(currencyManager);
environment.lifecycle().manage(torExitNodeManager);
AWSCredentials credentials = new BasicAWSCredentials(config.getCdnConfiguration().getAccessKey(), config.getCdnConfiguration().getAccessSecret());
AWSCredentialsProvider credentialsProvider = new AWSStaticCredentialsProvider(credentials);