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
|
@ -66,7 +66,7 @@ type Client struct {
|
|||
// switchLock protects endpoints, inactive, and subscription-related fields.
|
||||
// It is taken exclusively during endpoint switch and locked in shared mode
|
||||
// on every normal call.
|
||||
switchLock *sync.RWMutex
|
||||
switchLock sync.RWMutex
|
||||
|
||||
// channel for internal stop
|
||||
closeChan chan struct{}
|
||||
|
@ -83,7 +83,7 @@ type Client struct {
|
|||
}
|
||||
|
||||
type cache struct {
|
||||
m *sync.RWMutex
|
||||
m sync.RWMutex
|
||||
|
||||
nnsHash *util.Uint160
|
||||
gKey *keys.PublicKey
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue