rename GetHotView to IsHotView

This commit is contained in:
vyzo
2022-02-14 16:03:17 +02:00
parent 713edd565c
commit b576785aac
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -275,7 +275,7 @@ func (s *SplitStore) Has(ctx context.Context, cid cid.Cid) (bool, error) {
}
has, err = s.cold.Has(ctx, cid)
if has && bstore.GetHotView(ctx) {
if has && bstore.IsHotView(ctx) {
s.reifyColdObject(cid)
}
@@ -324,7 +324,7 @@ func (s *SplitStore) Get(ctx context.Context, cid cid.Cid) (blocks.Block, error)
blk, err = s.cold.Get(ctx, cid)
if err == nil {
if bstore.GetHotView(ctx) {
if bstore.IsHotView(ctx) {
s.reifyColdObject(cid)
}
@@ -378,7 +378,7 @@ func (s *SplitStore) GetSize(ctx context.Context, cid cid.Cid) (int, error) {
size, err = s.cold.GetSize(ctx, cid)
if err == nil {
if bstore.GetHotView(ctx) {
if bstore.IsHotView(ctx) {
s.reifyColdObject(cid)
}
@@ -559,7 +559,7 @@ func (s *SplitStore) View(ctx context.Context, cid cid.Cid, cb func([]byte) erro
err = s.cold.View(ctx, cid, cb)
if err == nil {
if bstore.GetHotView(ctx) {
if bstore.IsHotView(ctx) {
s.reifyColdObject(cid)
}