Skip to content

Commit

Permalink
remove retry interval
Browse files Browse the repository at this point in the history
  • Loading branch information
likeazir committed Aug 28, 2023
1 parent f25a6c5 commit 8eda25a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cache/filecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"github.com/hashicorp/golang-lru/v2"
"github.com/rs/zerolog/log"
"sync"
"time"
)

const MEM_PER_FILE_CACHE_B = 1024 * 1024 * 100 // 100MB
Expand Down Expand Up @@ -43,7 +42,6 @@ func (CF *CachedFile) fillLruBlock(blockNumber int, block *CacheBlock) {
buf, err := CF.dataRequestCallback(blockNumber*BLOCKSIZE, BLOCKSIZE)
if err != nil {
log.Debug().Err(err).Msg("Failed to acquire new data for the cache")
time.Sleep(100 * time.Millisecond)
continue
}
block.data = buf
Expand Down

0 comments on commit 8eda25a

Please sign in to comment.