Skip to content

Conversation

danlaine
Copy link
Collaborator

For consistency, changes logs and error messages to start with lowercase

for _ in 0..V::SIZE {
if buf.get_u8() != 0 {
return Err(CodecError::Invalid("Operation", "Delete value non-zero"));
return Err(CodecError::Invalid("operation", "delete value non-zero"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've used a full path for "Invalid" before...tbh we may be able to pull this automatically with some rust built-in:

"consensus::aggregation::Activity",

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to "storage::adb::Operation"

Adb(crate::adb::Error),
/// Maximum retries exceeded
#[error("Maximum retries exceeded")]
MaxRetriesExceeded,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to the rest of the PR, but this wasn't used, so I removed it

patrick-ogrady
patrick-ogrady previously approved these changes Jul 21, 2025
Base automatically changed from danlaine/sync-dynamic-root to main July 21, 2025 18:51
@patrick-ogrady patrick-ogrady dismissed their stale review July 21, 2025 18:51

The base branch was changed.

@patrick-ogrady patrick-ogrady merged commit 22892a8 into main Jul 21, 2025
32 of 33 checks passed
@patrick-ogrady patrick-ogrady deleted the danlaine/lowercase-log branch July 21, 2025 19:21
Copy link

codecov bot commented Jul 21, 2025

Codecov Report

Attention: Patch coverage is 17.64706% with 28 lines in your changes missing coverage. Please review.

Project coverage is 91.16%. Comparing base (ebcc30a) to head (e01fea1).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
storage/src/adb/any/sync/client.rs 8.69% 21 Missing ⚠️
storage/src/adb/operation.rs 50.00% 4 Missing ⚠️
storage/src/adb/any/mod.rs 0.00% 3 Missing ⚠️
@@            Coverage Diff             @@
##             main    #1295      +/-   ##
==========================================
- Coverage   91.16%   91.16%   -0.01%     
==========================================
  Files         246      246              
  Lines       61236    61242       +6     
==========================================
+ Hits        55828    55831       +3     
- Misses       5408     5411       +3     
Files with missing lines Coverage Δ
storage/src/adb/any/sync/mod.rs 100.00% <ø> (ø)
storage/src/adb/any/mod.rs 99.12% <0.00%> (ø)
storage/src/adb/operation.rs 96.42% <50.00%> (-2.08%) ⬇️
storage/src/adb/any/sync/client.rs 92.69% <8.69%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebcc30a...e01fea1. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants