Browse Source

Address comments

pull/899/head
Adrian Brink 7 years ago
parent
commit
12ae1bb5e5
No known key found for this signature in database GPG Key ID: 9168AC350E33CEF2
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      lite/provider_test.go

+ 4
- 4
lite/provider_test.go View File

@ -11,7 +11,7 @@ import (
liteErr "github.com/tendermint/tendermint/lite/errors"
)
// missingProvider doens't store anything, always a miss
// missingProvider doesn't store anything, always a miss
// Designed as a mock for testing
type missingProvider struct{}
@ -20,11 +20,11 @@ func NewMissingProvider() lite.Provider {
return missingProvider{}
}
func (missingProvider) StoreCommit(_ lite.FullCommit) error { return nil }
func (missingProvider) GetByHeight(_ int) (lite.FullCommit, error) {
func (missingProvider) StoreCommit(lite.FullCommit) error { return nil }
func (missingProvider) GetByHeight(int) (lite.FullCommit, error) {
return lite.FullCommit{}, liteErr.ErrCommitNotFound()
}
func (missingProvider) GetByHash(_ []byte) (lite.FullCommit, error) {
func (missingProvider) GetByHash([]byte) (lite.FullCommit, error) {
return lite.FullCommit{}, liteErr.ErrCommitNotFound()
}
func (missingProvider) LatestCommit() (lite.FullCommit, error) {


Loading…
Cancel
Save