1
0
Fork 0
forked from External/ergo

remove unnecessary indirection in semaphore

This commit is contained in:
Shivaram Lingamneni 2021-04-07 08:44:17 -04:00
parent 549d06bc98
commit 5b33cd436f
7 changed files with 39 additions and 40 deletions

View file

@ -37,5 +37,5 @@ func (serversem *ServerSemaphores) Initialize() {
if capacity > MaxServerSemaphoreCapacity {
capacity = MaxServerSemaphoreCapacity
}
serversem.ClientDestroy.Initialize(capacity)
serversem.ClientDestroy = utils.NewSemaphore(capacity)
}