forked from TrueCloudLab/neoneo-go
golangci: enable/fix misspell
This commit is contained in:
parent
4f3ffe7290
commit
63f212f4b3
3 changed files with 3 additions and 2 deletions
|
@ -46,6 +46,7 @@ linters:
|
||||||
- contextcheck
|
- contextcheck
|
||||||
- errorlint
|
- errorlint
|
||||||
- gofmt
|
- gofmt
|
||||||
|
- misspell
|
||||||
- whitespace
|
- whitespace
|
||||||
- goimports
|
- goimports
|
||||||
disable-all: true
|
disable-all: true
|
||||||
|
|
|
@ -77,7 +77,7 @@ func TestAddBlock(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRemoveOldTransfers(t *testing.T) {
|
func TestRemoveOldTransfers(t *testing.T) {
|
||||||
// Creating proper number of transfers/blocks takes unneccessary time, so emulate
|
// Creating proper number of transfers/blocks takes unnecessary time, so emulate
|
||||||
// some DB with stale entries.
|
// some DB with stale entries.
|
||||||
bc := newTestChain(t)
|
bc := newTestChain(t)
|
||||||
h, err := bc.GetHeader(bc.GetHeaderHash(0))
|
h, err := bc.GetHeader(bc.GetHeaderHash(0))
|
||||||
|
|
|
@ -37,7 +37,7 @@ type Billet struct {
|
||||||
|
|
||||||
// NewBillet returns a new billet for MPT trie restoring. It accepts a MemCachedStore
|
// NewBillet returns a new billet for MPT trie restoring. It accepts a MemCachedStore
|
||||||
// to decouple storage errors from logic errors so that all storage errors are
|
// to decouple storage errors from logic errors so that all storage errors are
|
||||||
// processed during `store.Persist()` at the caller. Another benifit is
|
// processed during `store.Persist()` at the caller. Another benefit is
|
||||||
// that every `Put` can be considered an atomic operation.
|
// that every `Put` can be considered an atomic operation.
|
||||||
func NewBillet(rootHash util.Uint256, mode TrieMode, prefix storage.KeyPrefix, store *storage.MemCachedStore) *Billet {
|
func NewBillet(rootHash util.Uint256, mode TrieMode, prefix storage.KeyPrefix, store *storage.MemCachedStore) *Billet {
|
||||||
return &Billet{
|
return &Billet{
|
||||||
|
|
Loading…
Reference in a new issue