Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ swbus-actor = { version = "0.1.0", path = "crates/swbus-actor" }
sonicdb-derive = { version = "0.1.0", path = "crates/sonicdb-derive" }
sonic-dash-api-proto = { version = "0.1.0", path = "crates/sonic-dash-api-proto" }
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common-testing = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }

# Dev dependencies
criterion = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion crates/container/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ chrono = { workspace = true }
enumset = { workspace = true }
futures-util = { workspace = true }
clap = { workspace = true }
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common = { workspace = true }
tokio = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/hamgrd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ edition.workspace = true
[dependencies]
swbus-edge = { path = "../swbus-edge" }
swbus-actor = { path = "../swbus-actor" }
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common.workspace = true
swss-common-bridge = { path = "../swss-common-bridge" }
swss-serde = { path = "../swss-serde" }
swss-common-testing = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common-testing.workspace = true
swbus-config.workspace = true
sonic-common.workspace = true
sonicdb-derive.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/sonic-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ signal-hook.workspace = true
color-eyre.workspace = true

# internal dependencies
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common.workspace = true

# Utils
lazy_static.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/sonicdb-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition.workspace = true
syn = "2.0" # For parsing Rust code
quote = "1.0" # For generating Rust code
proc-macro2 = "1.0" # For working with procedural macros
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common.workspace = true
sonic-common.workspace = true

[lib]
Expand Down
4 changes: 2 additions & 2 deletions crates/swbus-actor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition.workspace = true

[dependencies]
swbus-edge = { path = "../swbus-edge" }
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master", features = ["async"] }
swss-common = { workspace = true, features = ["async"] }
tokio.workspace = true
serde.workspace = true
serde_json.workspace = true
Expand All @@ -23,4 +23,4 @@ sonic-common.workspace = true
workspace = true

[dev-dependencies]
swss-common-testing = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common-testing.workspace = true
4 changes: 2 additions & 2 deletions crates/swbus-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ swbus-config.workspace = true
swbus-actor.workspace = true

[dev-dependencies]
swss-common-testing = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common-testing.workspace = true
swss-common.workspace = true
swss-serde.workspace = true

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/swbus-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ serde_json.workspace = true
thiserror.workspace = true
tracing.workspace = true
swss-serde.workspace = true
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common.workspace = true
swbus-proto.workspace = true

[dev-dependencies]
swss-common-testing = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common-testing.workspace = true
tempfile.workspace = true

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/swss-common-bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords.workspace = true
edition.workspace = true

[dependencies]
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master", features = ["async"] }
swss-common = { workspace = true, features = ["async"] }
swbus-edge = { path = "../swbus-edge" }
tokio.workspace = true
tokio-util.workspace = true
Expand All @@ -27,4 +27,4 @@ tracing.workspace = true
workspace = true

[dev-dependencies]
swss-common-testing = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common-testing.workspace = true
6 changes: 5 additions & 1 deletion crates/swss-common-bridge/src/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ pub trait ConsumerTable: Send + 'static {

macro_rules! rehydrate_body {
(true, $self:ident) => {{
let db = $self.db_connector_mut().clone_async().await;
let db = $self
.db_connector_mut()
.clone_timeout_async(15000)
.await
.expect("Failed to clone db connection");
let mut tbl = Table::new_async(db, $self.table_name()).await.expect("Table::new");
let keys = tbl.get_keys_async().await.expect("Table::get_keys");

Expand Down
4 changes: 2 additions & 2 deletions crates/swss-serde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ edition.workspace = true

[dependencies]
serde.workspace = true
swss-common = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common.workspace = true
serde_serializer_quick_unsupported = "0.1"

[lints]
workspace = true

[dev-dependencies]
swss-common-testing = { git = "https://github.com/sonic-net/sonic-swss-common.git", branch = "master" }
swss-common-testing.workspace = true