forked from cerc-io/ipld-eth-server
21 lines
373 B
Go
21 lines
373 B
Go
package provider
|
|
|
|
import "github.com/ipfs/go-cid"
|
|
|
|
type offlineProvider struct{}
|
|
|
|
// NewOfflineProvider creates a Provider that does nothing
|
|
func NewOfflineProvider() Provider {
|
|
return &offlineProvider{}
|
|
}
|
|
|
|
func (op *offlineProvider) Run() {}
|
|
|
|
func (op *offlineProvider) Provide(cid cid.Cid) error {
|
|
return nil
|
|
}
|
|
|
|
func (op *offlineProvider) Close() error {
|
|
return nil
|
|
}
|