From ec332cf903354f8ab291ea33962d244a879c330d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 17 Aug 2016 16:10:07 -0700 Subject: Minor naming improvement --- modules/sync/single_instance_pool.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/sync/single_instance_pool.go') diff --git a/modules/sync/single_instance_pool.go b/modules/sync/single_instance_pool.go index 4a00d528..01d95fd0 100644 --- a/modules/sync/single_instance_pool.go +++ b/modules/sync/single_instance_pool.go @@ -24,6 +24,8 @@ type SingleInstancePool struct { // count maintains the number of times an instance with same identity checks in // to the pool, and should be reduced to 0 (removed from map) by checking out // with same number of times. + // The purpose of count is to delete lock when count down to 0 and recycle memory + // from map object. count map[string]int } -- cgit v1.2.3