Remove actix_rt dependency in actix_web example (#102)
Signed-off-by: tottoto <tottotodev@gmail.com>
This commit is contained in:
parent
5e5aca54be
commit
579665f226
|
@ -8,7 +8,6 @@ edition = "2018"
|
|||
cloudevents-sdk = { path = "../.." }
|
||||
cloudevents-sdk-actix-web = { path = "../../cloudevents-sdk-actix-web" }
|
||||
actix-web = "^3"
|
||||
actix-rt = "1"
|
||||
actix-cors = "^0.5"
|
||||
lazy_static = "1.4.0"
|
||||
bytes = "^0.5"
|
||||
|
|
|
@ -28,7 +28,7 @@ async fn get_event() -> Result<HttpResponse, actix_web::Error> {
|
|||
.await?)
|
||||
}
|
||||
|
||||
#[actix_rt::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
std::env::set_var("RUST_LOG", "actix_server=info,actix_web=info");
|
||||
env_logger::init();
|
||||
|
|
Loading…
Reference in New Issue