-
Notifications
You must be signed in to change notification settings - Fork 20
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
refactor(database): streamline model merging #185
Conversation
Pull Request Test Coverage Report for Build 9199775762Details
💛 - Coveralls |
🤔 I see the streamlining of merging the 2 bits of code in the global model case into 1. But I don't think the early return actually makes the code mode readable |
6e9db20
to
0172bce
Compare
NBD, I guess it's personal; the need to mutate the variable in the original threw me when I first read it. But the intention here is to remove the need to I've simplified things now, leaving the |
0172bce
to
e3cac7d
Compare
Yeah the double collect was a bit nasty |
Well merging this whole thing indexer-rs/service/src/database.rs Lines 122 to 139 in edd1a89
into 1 was nice though |
e3cac7d
to
786c9fa
Compare
You got it! |
Another small thing I caught while familiarizing myself with the code, this removes the need to create an intermediate vector when merging models in
database
.