github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/executiondatasync/tracker/noop.go (about)

     1  package tracker
     2  
     3  import "github.com/ipfs/go-cid"
     4  
     5  type NoopStorage struct{}
     6  
     7  var _ Storage = (*NoopStorage)(nil)
     8  
     9  func (s *NoopStorage) Update(update UpdateFn) error {
    10  	return update(func(blockHeight uint64, cids ...cid.Cid) error {
    11  		return nil
    12  	})
    13  }
    14  
    15  func (s *NoopStorage) GetFulfilledHeight() (uint64, error) {
    16  	return 0, nil
    17  }
    18  
    19  func (s *NoopStorage) SetFulfilledHeight(uint64) error {
    20  	return nil
    21  }
    22  
    23  func (s *NoopStorage) GetPrunedHeight() (uint64, error) {
    24  	return 0, nil
    25  }
    26  
    27  func (s *NoopStorage) PruneUpToHeight(height uint64) error {
    28  	return nil
    29  }