Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move ConversionError from restate_common to restate_storage_api #532

Merged
merged 3 commits into from
Jun 27, 2023

Conversation

slinkydeveloper
Copy link
Contributor

Part of #420

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 creating this PR @slinkydeveloper. The changes look good to me. I only had two minor comments.

Comment on lines 23 to 27
impl From<ConversionError> for StorageError {
fn from(value: ConversionError) -> Self {
StorageError::Conversion(value.into())
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

If it weren't for this conversion, then we could avoid the dependency on restate_storage_api.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it makes sense to avoid that, on the contrary it makes sense that this package depends on storage_proto, because this package is part of the implementation of the storage interface. Also see #536

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Look at the last commit, i aligned what i did here with what's in #536

src/storage_rocksdb/src/outbox_table/mod.rs Outdated Show resolved Hide resolved
…on `restate_storage_api` only for the conversions.
@slinkydeveloper slinkydeveloper merged commit 66599dd into restatedev:main Jun 27, 2023
@slinkydeveloper slinkydeveloper deleted the refactor-common/2 branch June 27, 2023 11:43
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.

2 participants