This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repo-updater: Do not block in repoLookup for known repos (#11780)
If we have the entry in the DB already, we do not need to block the repoLookup request. For example GitHub has degraded services today, and requests for loading repositories timed out on sourcegraph.com due to this code path. However, if we already have repo metadata we can just return that in repoLookup. We still do what we did before, but in a background goroutine. We still need to do it so we can detect metadata changes (eg renames).
- Loading branch information
1 parent
4c7bd73
commit 9e27d08
Showing
2 changed files
with
73 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters