Skip to content

Commit

Permalink
Update prost (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-N-Suadicani authored Sep 7, 2023
1 parent 1a39461 commit a279bb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kanin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kanin"
version = "0.24.0"
version = "0.25.0"
edition = "2021"
authors = ["Victor Nordam Suadicani <[email protected]>"]
description = "An RPC microservice framework for AMQP, protobuf and Rust built on lapin (https://github.com/amqp-rs/lapin)."
Expand Down Expand Up @@ -34,7 +34,7 @@ futures = "0.3.21"
async-trait = "0.1.53"

# Protobuf implementation.
prost = "0.11.0"
prost = "0.12.0"

# Useful extra derive macros.
derive_more = "0.99.17"
Expand Down
4 changes: 4 additions & 0 deletions kanin/src/handler_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ impl HandlerConfig {

/// Queues will expire after a period of time only when they are not used (e.g. do not have consumers).
/// See [documentation](https://www.rabbitmq.com/ttl.html#queue-ttl).
// Panic is extremely unlikely, let's not bother.
#[allow(clippy::missing_panics_doc)]
pub fn with_expires(mut self, expires: Duration) -> Self {
let millis: u32 = expires
.as_millis()
Expand All @@ -91,6 +93,8 @@ impl HandlerConfig {

/// Messages expires if not consumed within `message_ttl`.
/// See [documentation](https://www.rabbitmq.com/ttl.html#message-ttl-using-x-args).
// Panic is extremely unlikely, let's not bother.
#[allow(clippy::missing_panics_doc)]
pub fn with_message_ttl(mut self, message_ttl: Duration) -> Self {
let millis: u32 = message_ttl
.as_millis()
Expand Down
4 changes: 2 additions & 2 deletions minimal_example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ edition = "2021"
[dependencies]
kanin = { path = "../kanin" }
tokio = "1.18.0"
prost = "0.11.0"
prost = "0.12.0"
log = "0.4.17"

[build-dependencies]
prost-build = "0.11.1"
prost-build = "0.12.0"

0 comments on commit a279bb9

Please sign in to comment.