prysmaticlabs / prysm

Confusing naming of struct fields or methods RVV-B0001
Bug risk
Minor
11 occurrences in this check
Method 'CompressCommitteeCache' differs only by capitalization to function 'compressCommitteeCache' in the same source file
145
146// CompressCommitteeCache compresses the size of the committee cache.
147// This method is thread safe and should be called without a lock.
148func (c *CommitteeCache[K, V]) CompressCommitteeCache() {149	c.lock.Lock()
150	defer c.lock.Unlock()
151
Method 'putIsNilPtr' differs only by capitalization to function 'putIsNilPtr' in the same source file
301	return add[K, V](c, k, v)
302}
303
304func (c *TestPrimitiveCache[K, V]) putIsNilPtr(k K, v *V) error {305	return add[K, V](c, k, *v)
306}
307
Method 'putIsNil' differs only by capitalization to function 'putIsNil' in the same source file
297	}, nil
298}
299
300func (c *TestPrimitiveCache[K, V]) putIsNil(k K, v V) error {301	return add[K, V](c, k, v)
302}
303
Method 'Clear' differs only by capitalization to function 'Clear' in the same source file
273	c.promCacheMiss.Inc()
274}
275
276func (c *TestPrimitiveCache[K, V]) Clear() {277	purge[K, V](c)
278}
279
Method 'missCache' differs only by capitalization to function 'missCache' in the same source file
269	c.promCacheHit.Inc()
270}
271
272func (c *TestPrimitiveCache[K, V]) missCache() {273	c.promCacheMiss.Inc()
274}
275
Method 'hitCache' differs only by capitalization to function 'hitCache' in the same source file
265	return c.lru
266}
267
268func (c *TestPrimitiveCache[K, V]) hitCache() {269	c.promCacheHit.Inc()
270}
271
Method 'get' differs only by capitalization to function 'get' in the same source file
261	promCacheMiss, promCacheHit prometheus.Counter
262}
263
264func (c *TestPrimitiveCache[K, V]) get() *lru.Cache[K, V] {265	return c.lru
266}
267
Method 'Clear' differs only by capitalization to function 'Clear' in the same source file
207	c.promCacheMiss.Inc()
208}
209
210func (c *TestBeaconCache[K, V]) Clear() {211	purge[K, V](c)
212}
213
Method 'missCache' differs only by capitalization to function 'missCache' in the same source file
203	c.promCacheHit.Inc()
204}
205
206func (c *TestBeaconCache[K, V]) missCache() {207	c.promCacheMiss.Inc()
208}
209
Method 'hitCache' differs only by capitalization to function 'hitCache' in the same source file
199	return c.lru
200}
201
202func (c *TestBeaconCache[K, V]) hitCache() {203	c.promCacheHit.Inc()
204}
205
Method 'get' differs only by capitalization to function 'get' in the same source file
195	promCacheMiss, promCacheHit prometheus.Counter
196}
197
198func (c *TestBeaconCache[K, V]) get() *lru.Cache[K, V] {199	return c.lru
200}
201