Skip to content

Commit

Permalink
Reduce number of requests to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Omotola committed Oct 20, 2023
1 parent b168a9e commit 099a53a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public PyPiClient(IEnvironmentVariableService environmentVariableService, ILogge
FinalCacheSize = 0,
};
this.logger = logger;
this.semaphore = new SemaphoreSlim(10, 10);
this.semaphore = new SemaphoreSlim(5);
}

public static HttpClient HttpClient { get; internal set; } = new HttpClient(HttpClientHandler);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public SimplePyPiClient(IEnvironmentVariableService environmentVariableService,
{
this.environmentVariableService = environmentVariableService;
this.logger = logger;
this.semaphore = new SemaphoreSlim(10, 10);
this.semaphore = new SemaphoreSlim(5);
}

public static HttpClient HttpClient { get; internal set; } = new HttpClient(HttpClientHandler);
Expand Down Expand Up @@ -287,7 +287,6 @@ public void Dispose()
this.cacheTelemetry.Dispose();
this.cachedProjectWheelFiles.Dispose();
this.cachedSimplePyPiProjects.Dispose();
HttpClient.Dispose();
this.semaphore.Dispose();
}
}

0 comments on commit 099a53a

Please sign in to comment.