forked from External/ergo
remove unnecessary indirection in semaphore
This commit is contained in:
parent
549d06bc98
commit
5b33cd436f
7 changed files with 39 additions and 40 deletions
|
|
@ -37,5 +37,5 @@ func (serversem *ServerSemaphores) Initialize() {
|
|||
if capacity > MaxServerSemaphoreCapacity {
|
||||
capacity = MaxServerSemaphoreCapacity
|
||||
}
|
||||
serversem.ClientDestroy.Initialize(capacity)
|
||||
serversem.ClientDestroy = utils.NewSemaphore(capacity)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue