Skip to content

Commit

Permalink
chore(deps): bump the bollard dep to latest (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
h7kanna authored Dec 16, 2024
1 parent 2756f68 commit 3dc6773
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions testcontainers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
async-trait = { version = "0.1" }
bollard = { version = "0.17.0", features = ["ssl"] }
bollard-stubs = "=1.45.0-rc.26.0.1"
bollard = { version = "0.18.1", features = ["ssl"] }
bollard-stubs = "=1.47.1-rc.27.3.1"
bytes = "1.6.0"
conquer-once = { version = "0.4", optional = true }
docker_credential = "1.3.1"
Expand Down
2 changes: 1 addition & 1 deletion testcontainers/src/core/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl Client {
}

/// Creates a network with given name and returns an ID
pub(crate) async fn create_network(&self, name: &str) -> Result<Option<String>, ClientError> {
pub(crate) async fn create_network(&self, name: &str) -> Result<String, ClientError> {
let network = self
.bollard
.create_network(CreateNetworkOptions {
Expand Down
2 changes: 1 addition & 1 deletion testcontainers/src/core/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn created_networks() -> &'static Mutex<HashMap<String, Weak<Network>>> {

pub(crate) struct Network {
name: String,
id: Option<String>,
id: String,
client: Arc<Client>,
}

Expand Down

0 comments on commit 3dc6773

Please sign in to comment.