diff options
Diffstat (limited to 'modules/sync/single_instance_pool.go')
-rw-r--r-- | modules/sync/single_instance_pool.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/sync/single_instance_pool.go b/modules/sync/single_instance_pool.go index 4a00d5283d..01d95fd0b5 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 } |