remove semaphore and limit docker host connections to 10

This commit is contained in:
Henry Dollman
2024-09-29 12:30:30 -04:00
parent 2f4e537f72
commit dd84a9fd35
3 changed files with 2 additions and 14 deletions

View File

@@ -2,14 +2,6 @@ package agent
import "math"
func (a *Agent) acquireSemaphore() {
a.sem <- struct{}{}
}
func (a *Agent) releaseSemaphore() {
<-a.sem
}
// delete container stats from map using mutex
func (a *Agent) deleteContainerStatsSync(id string) {
a.containerStatsMutex.Lock()