github.com/celestiaorg/celestia-node@v0.15.0-beta.1/pruner/archival/pruner.go (about)

     1  package archival
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/celestiaorg/celestia-node/header"
     7  )
     8  
     9  // Pruner is a noop implementation of the pruner.Factory interface
    10  // that allows archival nodes to sync and retain historical data
    11  // that is out of the availability window.
    12  type Pruner struct{}
    13  
    14  func NewPruner() *Pruner {
    15  	return &Pruner{}
    16  }
    17  
    18  func (p *Pruner) Prune(context.Context, *header.ExtendedHeader) error {
    19  	return nil
    20  }