Skip to content

Conversation

@l0ngvh
Copy link
Contributor

@l0ngvh l0ngvh commented May 4, 2024

Fix #66
By comparing the set of repositories before reloading and the set of repositories got from reloading, I could infer which repository was reloaded, which was not and which was recently added.
I tried to add tests to verify this behavior but was limited by our current tests infra. It was hard to load more than one repo during reloading due to the way we are mocking the RepositoryLoader.
The refresh process of each repository (config refreshing, etc...) is already granular, and each refresh task run concurrently with the other using tokio::join!. Therefore, no further action is needed in this regard.

Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Thanks!

@Kobzol Kobzol added this pull request to the merge queue May 4, 2024
Merged via the queue into rust-lang:main with commit a5471ae May 4, 2024
@l0ngvh l0ngvh deleted the feat-make-refresh-more-robust branch May 6, 2024 01:05
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.

Make refreshing more robust

2 participants