From f344212b93cc1de672a6a09906b719c2e287d558 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Thu, 4 Apr 2013 19:49:32 -0700 Subject: [PATCH] Renamed PortAllocator.populate() to run() --- network.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network.go b/network.go index fe700bd61..e4b575a6e 100644 --- a/network.go +++ b/network.go @@ -163,7 +163,7 @@ type PortAllocator struct { ports chan (int) } -func (alloc *PortAllocator) populate(start, end int) { +func (alloc *PortAllocator) run(start, end int) { alloc.ports = make(chan int, end-start) for port := start; port < end; port++ { alloc.ports <- port @@ -192,7 +192,7 @@ func (alloc *PortAllocator) Release(port int) error { func newPortAllocator(start, end int) (*PortAllocator, error) { allocator := &PortAllocator{} - allocator.populate(start, end) + allocator.run(start, end) return allocator, nil }