Skip to content

Commit 6b8c310

Browse files
committed
sentry - Remove clustered & update Cargo.lock
1 parent e984f60 commit 6b8c310

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

Cargo.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sentry/src/main.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
5050
.help("the identity to use with the dummy adapter")
5151
.takes_value(true),
5252
)
53-
.arg(
54-
Arg::with_name("clustered")
55-
.long("clustered")
56-
.short("c")
57-
.help("Run app in cluster mode with multiple workers"),
58-
)
5953
.get_matches();
6054

6155
let environment = std::env::var("ENV").unwrap_or_else(|_| "development".into());
@@ -64,7 +58,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
6458
.unwrap_or_else(|_| DEFAULT_PORT);
6559
let config_file = cli.value_of("config");
6660
let config = configuration(&environment, config_file).unwrap();
67-
let clustered = cli.is_present("clustered");
6861

6962
let adapter = match cli.value_of("adapter").unwrap() {
7063
"ethereum" => {
@@ -112,15 +105,13 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
112105
AdapterTypes::EthereumAdapter(adapter) => {
113106
run(
114107
Application::new(*adapter, config, logger, redis, postgres),
115-
clustered,
116108
port,
117109
)
118110
.await
119111
}
120112
AdapterTypes::DummyAdapter(adapter) => {
121113
run(
122114
Application::new(*adapter, config, logger, redis, postgres),
123-
clustered,
124115
port,
125116
)
126117
.await
@@ -131,7 +122,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
131122
}
132123

133124
/// Starts the `hyper` `Server`.
134-
async fn run<A: Adapter + 'static>(app: Application<A>, _clustered: bool, port: u16) {
125+
async fn run<A: Adapter + 'static>(app: Application<A>, port: u16) {
135126
let addr = ([127, 0, 0, 1], port).into();
136127
let logger = app.logger.clone();
137128
info!(&logger, "Listening on port {}!", port);

0 commit comments

Comments
 (0)