Skip to content

Commit ae0e4e4

Browse files
build(deps): bump anyhow from 1.0.99 to 1.0.100 (#7287)
* build(deps): bump anyhow from 1.0.99 to 1.0.100 Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.99 to 1.0.100. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](dtolnay/anyhow@1.0.99...1.0.100) --- updated-dependencies: - dependency-name: anyhow dependency-version: 1.0.100 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Inline formatting argument --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: timvisee <[email protected]>
1 parent ced6539 commit ae0e4e4

6 files changed

Lines changed: 13 additions & 16 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/common/dataset/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ publish = false
1313
workspace = true
1414

1515
[dependencies]
16-
anyhow = "1.0.99"
16+
anyhow = "1.0.100"
1717
flate2 = { version = "1.1.2" }
1818
indicatif = { workspace = true }
1919
reqwest = { workspace = true }

lib/segment/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ walkdir = { workspace = true }
3535
rstest = { workspace = true }
3636
segment = { path = ".", default-features = false, features = ["testing"] }
3737
proptest = { workspace = true }
38-
anyhow = "1.0.99"
38+
anyhow = "1.0.100"
3939

4040
[target.'cfg(not(target_os = "windows"))'.dev-dependencies]
4141
pprof = { workspace = true }

lib/storage/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ segment = { path = "../segment", default-features = false }
5656
collection = { path = "../collection" }
5757
api = { path = "../api" }
5858
futures = { workspace = true }
59-
anyhow = "1.0.99"
59+
anyhow = "1.0.100"
6060
uuid = { workspace = true }
6161
url = "2.5.7"
6262
reqwest = { workspace = true }

lib/storage/src/content_manager/consensus_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl<C: CollectionContainer> ConsensusManager<C> {
372372
stop_consensus
373373
}
374374
ty @ EntryType::EntryConfChange => {
375-
return Err(anyhow!("Unexpected entry type: {:?}", ty));
375+
return Err(anyhow!("Unexpected entry type: {ty:?}"));
376376
}
377377
}
378378
};

src/consensus.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl Consensus {
223223
&runtime,
224224
leader_established_in_ms,
225225
)
226-
.map_err(|err| anyhow!("Failed to initialize Consensus for new Raft state: {}", err))?;
226+
.map_err(|err| anyhow!("Failed to initialize Consensus for new Raft state: {err}"))?;
227227
} else {
228228
runtime
229229
.block_on(Self::recover(
@@ -234,10 +234,7 @@ impl Consensus {
234234
tls_config.clone(),
235235
))
236236
.map_err(|err| {
237-
anyhow!(
238-
"Failed to recover Consensus from existing Raft state: {}",
239-
err
240-
)
237+
anyhow!("Failed to recover Consensus from existing Raft state: {err}")
241238
})?;
242239

243240
if bootstrap_peer.is_some() || uri.is_some() {
@@ -455,7 +452,7 @@ impl Consensus {
455452
.parse()
456453
.context(format!("Failed to parse peer URI: {}", peer.uri))?,
457454
)
458-
.map_err(|err| anyhow!("Failed to add peer: {}", err))?
455+
.map_err(|err| anyhow!("Failed to add peer: {err}"))?
459456
}
460457
// Only first peer has itself as a voter in the initial conf state.
461458
// This needs to be propagated manually to other peers as it is not contained in any log entry.
@@ -922,7 +919,7 @@ impl Consensus {
922919

923920
store
924921
.append_entries(ready.take_entries())
925-
.map_err(|err| anyhow!("Failed to append entries: {}", err))?
922+
.map_err(|err| anyhow!("Failed to append entries: {err}"))?
926923
}
927924

928925
if let Some(hs) = ready.hs() {
@@ -932,7 +929,7 @@ impl Consensus {
932929

933930
store
934931
.set_hard_state(hs.clone())
935-
.map_err(|err| anyhow!("Failed to set hard state: {}", err))?
932+
.map_err(|err| anyhow!("Failed to set hard state: {err}"))?
936933
}
937934

938935
let role_change = ready.ss().map(|ss| ss.raft_state);
@@ -995,7 +992,7 @@ impl Consensus {
995992

996993
store
997994
.set_commit_index(commit)
998-
.map_err(|err| anyhow!("Failed to set commit index: {}", err))?;
995+
.map_err(|err| anyhow!("Failed to set commit index: {err}"))?;
999996
}
1000997

1001998
self.send_messages(light_rd.take_messages());
@@ -1392,7 +1389,7 @@ impl RaftMessageSender {
13921389
self.tls_config.clone(),
13931390
)
13941391
.await
1395-
.map_err(|err| anyhow::format_err!("Failed to create who-is channel: {}", err))?;
1392+
.map_err(|err| anyhow::format_err!("Failed to create who-is channel: {err}"))?;
13961393

13971394
let uri = RaftClient::new(channel)
13981395
.who_is(tonic::Request::new(GrpcPeerId { id: peer_id }))

0 commit comments

Comments
 (0)