Skip to content

Commit

Permalink
enforce each restore path to its own workqueue (#6955)
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd authored Sep 12, 2023
1 parent 88cfc5c commit 33086ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ public async Task Push(string pathToAssetsJson) {
public async Task<string> Restore(string pathToAssetsJson) {
var config = await ParseConfigurationFile(pathToAssetsJson);

var restoreQueue = InitTasks.GetOrAdd("restore", new TaskQueue());
var restoreQueue = InitTasks.GetOrAdd(config.AssetsJsonRelativeLocation, new TaskQueue());

await restoreQueue.EnqueueAsync(async () =>
{
var initialized = IsAssetsRepoInitialized(config);
Expand Down

0 comments on commit 33086ab

Please sign in to comment.