Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Oct 17, 2023
1 parent 15a5e50 commit 9a431d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/cachemdw/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ func IsCacheable(
return false
}

// blockNumber <= 0 means magic tag was used, one of the "latest", "pending", "earliest", etc...
// as of now we don't cache requests with magic tags
if blockNumber <= 0 {
return false
}

// block number is specified and it's not a magic tag - cache the request
return true
}

Expand Down

0 comments on commit 9a431d9

Please sign in to comment.