forked from wrenn/wrenn
v0.1.0 (#17)
This commit is contained in:
@ -24,7 +24,7 @@ func (a *SlotAllocator) Allocate() (int, error) {
|
||||
a.mu.Lock()
|
||||
defer a.mu.Unlock()
|
||||
|
||||
for i := 1; i <= 65534; i++ {
|
||||
for i := 1; i <= 32767; i++ {
|
||||
if !a.inUse[i] {
|
||||
a.inUse[i] = true
|
||||
return i, nil
|
||||
|
||||
Reference in New Issue
Block a user