Skip to content

Commit

Permalink
Remove actix_rt from main
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Nov 30, 2024
1 parent 2c82b88 commit c5d8e9c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ lazy_static = "1.2"
env_logger = "*"
#actix_lambda = {optional=true, version="0.2"}
reqwest = {version="0.11", default-features=false, features=["rustls-tls", "blocking"]}
actix-rt = "2.7"

[dev-dependencies]
wiremock = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn config(cfg: &mut web::ServiceConfig) {
}

#[cfg(not(feature = "lambda"))]
#[actix_rt::main]
#[actix_web::main]
async fn main() {
log4rs::init_file("log.yaml", Default::default()).unwrap();
let port = env::var("PORT")
Expand Down

0 comments on commit c5d8e9c

Please sign in to comment.