Skip to content

Conversation

lsytj0413
Copy link
Contributor

@lsytj0413 lsytj0413 commented Mar 29, 2025

Ref: #3036

Before this pr:

cargo clippy --manifest-path crates/service-protocol/Cargo.toml --all-features

crates/service-protocol/src/codec.rs:253:55
    |
253 |                     let invocation_id = InvocationId::mock_random();
    |                                                       ^^^^^^^^^^^ function or associated item not found in `InvocationId`

@lsytj0413 lsytj0413 force-pushed the fix-servive-protocol-compile-failed branch from df187e6 to dbd8a5c Compare April 1, 2025 10:43
Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this problem @lsytj0413. I had a question regarding the "codec" feature.

@@ -12,21 +12,21 @@ default = []
codec = ["dep:restate-types", "dep:paste"]
discovery = ["dep:serde", "dep:serde_json", "dep:bytestring", "dep:regress", "dep:tracing", "dep:codederror", "dep:restate-errors", "dep:http", "dep:http-body-util", "dep:restate-service-client", "dep:restate-types", "dep:tokio"]
message = ["dep:restate-types", "dep:bytes-utils", "dep:codederror", "dep:restate-errors", "dep:size", "dep:tracing"]
test-util = []
test-util = ["codec", "restate-types/test-util"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is "codec" needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointing that out. It was unnecessary, and I have already deleted it.

@lsytj0413 lsytj0413 force-pushed the fix-servive-protocol-compile-failed branch from dbd8a5c to f534b13 Compare April 10, 2025 13:54
@tillrohrmann tillrohrmann merged commit 7de5ed3 into restatedev:main Apr 10, 2025
25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2025
@lsytj0413 lsytj0413 deleted the fix-servive-protocol-compile-failed branch April 10, 2025 23:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants