forked from TrueCloudLab/frostfs-node
[#411] Remove unnecessary pointers for sync objects
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
f934abed8f
commit
faca861451
20 changed files with 39 additions and 64 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
type (
|
||||
cleanupTable struct {
|
||||
*sync.RWMutex
|
||||
sync.RWMutex
|
||||
enabled bool
|
||||
threshold uint64
|
||||
lastAccess map[string]epochStampWithNodeInfo
|
||||
|
@ -29,7 +29,6 @@ type (
|
|||
|
||||
func newCleanupTable(enabled bool, threshold uint64) cleanupTable {
|
||||
return cleanupTable{
|
||||
RWMutex: new(sync.RWMutex),
|
||||
enabled: enabled,
|
||||
threshold: threshold,
|
||||
lastAccess: make(map[string]epochStampWithNodeInfo),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue