We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4727377 commit 5f9f82eCopy full SHA for 5f9f82e
1 file changed
src/Server/Services/GitLab/VersionCache.cs
@@ -111,8 +111,6 @@ public void Init(ProjectId projectId) => Executor.ExecuteBackgroundAsync(async (
111
112
public async Task RefreshAsync()
113
{
114
- await _semaphore.WaitAsync();
115
-
116
_logger.LogInformation("Reloading version cache for {project}", _cachedProject!.Value.Name);
117
118
_latestTag = (await _gl.GetLatestReleaseAsync(_cachedProject.Value.Id))?.TagName;
@@ -135,6 +133,8 @@ public async Task RefreshAsync()
135
133
if (releases is null)
136
134
goto ReleaseLock;
137
+ await _semaphore.WaitAsync();
+
138
if (Count > 0)
139
140
_logger.LogInformation("Clearing {entryCount} version cache entries for {project}", Count,
0 commit comments