Skip to content

Commit f36fbd2

Browse files
authored
chore: fix some minor issues in comments (#3304)
1 parent 03d0d4d commit f36fbd2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

block/internal/cache/generic_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (c *Cache) setSeenBatch(hashes []string, height uint64) {
102102
return
103103
}
104104

105-
// currently not used, but there for compleness against setSeen
105+
// currently not used, but there for completeness against setSeen
106106
for _, h := range hashes {
107107
if existing, ok := c.hashByHeight[height]; ok && existing == h {
108108
c.hashes[existing] = true

block/internal/cache/generic_cache_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func TestHeightPlaceholderKey(t *testing.T) {
297297
// TestCache_NoPlaceholderLeakAfterRefire verifies that when the DA retriever
298298
// re-fires setDAIncluded with the real content hash after a restart, the
299299
// snapshot placeholder that RestoreFromStore installed is evicted from
300-
// daIncluded. Without the eviction in setDAIncluded, every restart cycle
300+
// daIncluded. Without the eviction in setDAIncluded, every restart cycle
301301
// would leak one orphaned placeholder key per in-flight block.
302302
func TestCache_NoPlaceholderLeakAfterRefire(t *testing.T) {
303303
st := testMemStore(t)

0 commit comments

Comments
 (0)