morph/client: fix govet warnings #413

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fix-govet into master 2023-05-31 12:40:34 +00:00

View file

@ -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()