summaryrefslogtreecommitdiffstats
path: root/modules/sync
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-18 01:10:07 +0200
committerUnknwon <u@gogs.io>2016-08-18 01:10:07 +0200
commitec332cf903354f8ab291ea33962d244a879c330d (patch)
tree17ad5b632b022ecd840fc140dabbd904b762ff4e /modules/sync
parentFix #3361: Dumps are created world readable (#3473) (diff)
downloadforgejo-ec332cf903354f8ab291ea33962d244a879c330d.tar.xz
forgejo-ec332cf903354f8ab291ea33962d244a879c330d.zip
Minor naming improvement
Diffstat (limited to 'modules/sync')
-rw-r--r--modules/sync/single_instance_pool.go2
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
}