Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

dumps v2 #191

Merged
merged 19 commits into from
Jun 1, 2021
Merged

dumps v2 #191

merged 19 commits into from
Jun 1, 2021

Conversation

MarinPostma
Copy link
Contributor

No description provided.

@MarinPostma MarinPostma marked this pull request as draft May 24, 2021 17:18
@MarinPostma MarinPostma changed the base branch from main to dumps May 24, 2021 17:18
@irevoire irevoire self-requested a review May 27, 2021 09:57
meilisearch-http/src/index/dump.rs Outdated Show resolved Hide resolved
@@ -87,6 +87,28 @@ impl Settings<Checked> {
_kind: PhantomData,
}
}

pub fn into_unchecked(self) -> Settings<Unchecked> {
let Self {
Copy link
Member

@irevoire irevoire May 31, 2021

Choose a reason for hiding this comment

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

wtf is this syntax 😂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that was the least amount of effort for me and my vim 😆

meilisearch-http/src/index_controller/dump_actor/mod.rs Outdated Show resolved Hide resolved
Comment on lines +51 to +62
macro_rules! internal_error {
($($other:path), *) => {
$(
impl From<$other> for UuidResolverError {
fn from(other: $other) -> Self {
Self::Internal(other.to_string())
}
}
)*
}
}

Copy link
Member

Choose a reason for hiding this comment

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

Why do we copy-paste this code in every actor instead of defining once for everyone and call it everywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because it's a bit of a workaround for now, it gets things done until I work on error handling

Co-authored-by: Irevoire <tamo@meilisearch.com>
@irevoire irevoire marked this pull request as ready for review June 1, 2021 09:22
@irevoire
Copy link
Member

irevoire commented Jun 1, 2021

bors try

bors bot added a commit that referenced this pull request Jun 1, 2021
@irevoire
Copy link
Member

irevoire commented Jun 1, 2021

bors merge

@bors
Copy link
Contributor

bors bot commented Jun 1, 2021

@bors
Copy link
Contributor

bors bot commented Jun 1, 2021

@bors bors bot merged commit 3a7c1f2 into dumps Jun 1, 2021
@bors bors bot deleted the dumps-v2 branch June 1, 2021 10:11
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