Update dependencies

This commit is contained in:
Adrian Woźniak 2022-11-29 15:23:45 +01:00
parent 91d9dff415
commit 605bf812a1
3 changed files with 322 additions and 150 deletions

468
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@ bytes = { version = "1.2.1" }
config = { path = "../config" } config = { path = "../config" }
futures = { version = "0.3.25" } futures = { version = "0.3.25" }
model = { path = "../model" } model = { path = "../model" }
rumqttc = { version = "0.17.0" } rumqttc = { version = "*" }
serde = { version = "*", features = ['derive'] } serde = { version = "*", features = ['derive'] }
strum = { version = "0.24.1", features = ['strum_macros', 'default', 'derive'] } strum = { version = "0.24.1", features = ['strum_macros', 'default', 'derive'] }
tarpc = { version = "0.31.0", features = ["tokio1", "serde-transport-bincode", "serde-transport", "serde", "serde-transport-json", "tcp"] } tarpc = { version = "0.31.0", features = ["tokio1", "serde-transport-bincode", "serde-transport", "serde", "serde-transport-json", "tcp"] }

View File

@ -20,7 +20,7 @@ pub async fn create_order(
tracing::error!("{}", e); tracing::error!("{}", e);
Err(Error::InternalServerError) Err(Error::InternalServerError)
} else { } else {
mqtt.emit_order_created(&order.order); mqtt.emit_order_created(&order.order).await;
Ok(order) Ok(order)
} }
} }