fix portallocator comments

Change-Id: I547168de08acaedad03ac472c6b6afa578b8a7c4
pull/6/head
chenguoyan01 2018-01-30 11:17:39 +08:00
parent 9fa96264f9
commit 1ba6cdae4a
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func NewPortAllocatorCustom(pr net.PortRange, allocatorFactory allocator.Allocat
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 {
return NewPortAllocatorCustom(pr, func(max int, rangeSpec string) allocator.Interface {
return allocator.NewAllocationMap(max, rangeSpec)