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
Extend dialogue storages with RocksDB #753
Conversation
130517b
to
4b6c97b
Compare
types::ChatId, | ||
}; | ||
|
||
#[tokio::test(flavor = "multi_thread")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a particular reason to use flavor = "multi_thread"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, I have just copied tests from tests/sqlite.rs
, but can't find any arguments for it. Should I remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, if this already existed then this can be left to a followup PR. I think we could have a function like test_storage()
(or a number of functions anyway...) so that we test all storages in the same exact way.
4b6c97b
to
d75b465
Compare
@WaffleLapkin @Hirrolot I have also changed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, however @Hirrolot knows the storages better, so I'd wait for his review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final nitpick and this PR is ready to be merged!
Thanks for submitting a useful feature, @xamgore! |
Extend dialogue storages with RocksDB Former-commit-id: 926b8ef
The implementation is straightforward and uses a
MultiThread
database instance. Thedelete_chat
method has an excessive check, that allows raising theDialogueNotFound
exception, though I'm not sure why anybody would need this. Should we remove it?