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

Fix backend storage trait object safety issue #197

Merged
merged 4 commits into from
Apr 13, 2021

Conversation

piakushin
Copy link
Member

No description provided.

@@ -80,7 +80,7 @@ impl Operation {

#[async_trait]
pub trait BackendStorage: Debug {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be easier to make BackendStorage: Debug + Send? We can left default implementations then

Copy link
Member Author

Choose a reason for hiding this comment

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

🤦 I tried to add Send, but it didn't work. But adding Sync worked

@piakushin piakushin merged commit 2cc2107 into master Apr 13, 2021
@piakushin piakushin deleted the fix_backend_storage_trait_object_safety_issue branch April 13, 2021 10:29
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