diff options
author | Unknwon <u@gogs.io> | 2016-08-18 01:10:07 +0200 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-18 01:10:07 +0200 |
commit | ec332cf903354f8ab291ea33962d244a879c330d (patch) | |
tree | 17ad5b632b022ecd840fc140dabbd904b762ff4e /modules/sync | |
parent | Fix #3361: Dumps are created world readable (#3473) (diff) | |
download | forgejo-ec332cf903354f8ab291ea33962d244a879c330d.tar.xz forgejo-ec332cf903354f8ab291ea33962d244a879c330d.zip |
Minor naming improvement
Diffstat (limited to 'modules/sync')
-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 } |