Skip to content

Commit

Permalink
Merge pull request #101 from celestiaorg/store-remove-lifecycles
Browse files Browse the repository at this point in the history
fix!: remove lifecycle methods from the interface
  • Loading branch information
renaynay authored Aug 25, 2023
2 parents 3b7c845 + 85ddfff commit d9a7037
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions headertest/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ func NewStore[H header.Header[H]](t *testing.T, gen Generator[H], numHeaders int
}

func (m *Store[H]) Init(context.Context, H) error { return nil }
func (m *Store[H]) Start(context.Context) error { return nil }
func (m *Store[H]) Stop(context.Context) error { return nil }

func (m *Store[H]) Height() uint64 {
return uint64(m.HeadHeight)
Expand Down
7 changes: 0 additions & 7 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ func (ena *ErrNonAdjacent) Error() string {
// Store encompasses the behavior necessary to store and retrieve Headers
// from a node's local storage.
type Store[H Header[H]] interface {
// Start starts the store.
Start(context.Context) error

// Stop stops the store by preventing further writes
// and waiting till the ongoing ones are done.
Stop(context.Context) error

// Getter encompasses all getter methods for headers.
Getter[H]

Expand Down

0 comments on commit d9a7037

Please sign in to comment.