mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 10:46:16 +01:00
remove semaphore and limit docker host connections to 10
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user