[WIP] Refactor convert_to_full_user_ids #121
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi! Back for more:
As you can see in the main, I let the function consume the a.room_dm_create and reset. It is then consumed by into_iter and moved back at the end, which will not really have an impact on cpu.
The Iterator extensions in this file is a lot of boilerplate and will lay here only until I find out how to do it even better.
This project logs extensively and I still have to find out what the best approach to more clearly show the algorithms is.
I've, done so by moving the text above the function, but still keeping it near(L#306-L309) . @8go Would that be fine for you?
There also is this conundrum:
Why have you not filtered/error'ed the invalid user_ids but let the process continue? I understand the logging, but why not bubble up Errors there?
Cheers 😁