fix portallocator comments

Change-Id: I547168de08acaedad03ac472c6b6afa578b8a7c4
This commit is contained in:
chenguoyan01 2018-01-30 11:17:39 +08:00
parent 9fa96264f9
commit 1ba6cdae4a

View File

@ -74,7 +74,7 @@ func NewPortAllocatorCustom(pr net.PortRange, allocatorFactory allocator.Allocat
return a return a
} }
// Helper that wraps NewAllocatorCIDRRange, for creating a range backed by an in-memory store. // Helper that wraps NewPortAllocatorCustom, for creating a range backed by an in-memory store.
func NewPortAllocator(pr net.PortRange) *PortAllocator { func NewPortAllocator(pr net.PortRange) *PortAllocator {
return NewPortAllocatorCustom(pr, func(max int, rangeSpec string) allocator.Interface { return NewPortAllocatorCustom(pr, func(max int, rangeSpec string) allocator.Interface {
return allocator.NewAllocationMap(max, rangeSpec) return allocator.NewAllocationMap(max, rangeSpec)