[#413] morph/client: Fix govet warnings

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-05-31 15:37:18 +03:00
parent dbf41391b5
commit 4476a1dbaf

View file

@ -90,7 +90,7 @@ type cache struct {
txHeights *lru.Cache[util.Uint256, uint32]
}
func (c cache) nns() *util.Uint160 {
func (c *cache) nns() *util.Uint160 {
c.m.RLock()
defer c.m.RUnlock()
@ -104,7 +104,7 @@ func (c *cache) setNNSHash(nnsHash util.Uint160) {
c.nnsHash = &nnsHash
}
func (c cache) groupKey() *keys.PublicKey {
func (c *cache) groupKey() *keys.PublicKey {
c.m.RLock()
defer c.m.RUnlock()