forked from TrueCloudLab/frostfs-node
[#413] morph/client: Fix govet warnings
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
dbf41391b5
commit
4476a1dbaf
1 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ type cache struct {
|
||||||
txHeights *lru.Cache[util.Uint256, uint32]
|
txHeights *lru.Cache[util.Uint256, uint32]
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c cache) nns() *util.Uint160 {
|
func (c *cache) nns() *util.Uint160 {
|
||||||
c.m.RLock()
|
c.m.RLock()
|
||||||
defer c.m.RUnlock()
|
defer c.m.RUnlock()
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ func (c *cache) setNNSHash(nnsHash util.Uint160) {
|
||||||
c.nnsHash = &nnsHash
|
c.nnsHash = &nnsHash
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c cache) groupKey() *keys.PublicKey {
|
func (c *cache) groupKey() *keys.PublicKey {
|
||||||
c.m.RLock()
|
c.m.RLock()
|
||||||
defer c.m.RUnlock()
|
defer c.m.RUnlock()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue