Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dshulyak committed Aug 2, 2023
1 parent 42538d3 commit c575e1d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion hare3/hare.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ func (inputs *instanceInputs) submit(msg *input) (*response, error) {
case <-inputs.ctx.Done():
return nil, inputs.ctx.Err()

Check warning on line 104 in hare3/hare.go

View check run for this annotation

Codecov / codecov/patch

hare3/hare.go#L103-L104

Added lines #L103 - L104 were not covered by tests
}

}

type Opt func(*Hare)
Expand Down
3 changes: 2 additions & 1 deletion hare3/legacy_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"context"
"errors"

"go.uber.org/zap"

"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/hare/eligibility"
"go.uber.org/zap"
)

type oracle interface {
Expand Down
2 changes: 0 additions & 2 deletions hare3/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
"github.com/spacemeshos/go-spacemesh/log"
)

type round = Round

type grade uint8

const (
Expand Down
2 changes: 1 addition & 1 deletion hare3/protocol_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package hare3
import (
"testing"

"github.com/stretchr/testify/require"
"go.uber.org/zap"

"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/log/logtest"
"github.com/stretchr/testify/require"
)

func castIds(strings ...string) []types.ProposalID {
Expand Down
5 changes: 3 additions & 2 deletions hare3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package hare3
import (
"fmt"

"go.uber.org/zap/zapcore"

"github.com/spacemeshos/go-spacemesh/codec"
"github.com/spacemeshos/go-spacemesh/common/types"
"github.com/spacemeshos/go-spacemesh/hash"
"github.com/spacemeshos/go-spacemesh/log"
"go.uber.org/zap/zapcore"
)

type Round uint8
Expand All @@ -18,7 +19,7 @@ func (r Round) String() string {
return roundNames[r]

Check warning on line 19 in hare3/types.go

View check run for this annotation

Codecov / codecov/patch

hare3/types.go#L18-L19

Added lines #L18 - L19 were not covered by tests
}

// NOTE(dshulyak) changes in order is a breaking change
// NOTE(dshulyak) changes in order is a breaking change.
const (
preround Round = iota
hardlock
Expand Down

0 comments on commit c575e1d

Please sign in to comment.