Skip to content

Commit

Permalink
cleaned up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Feb 24, 2021
1 parent 2420a2b commit fe72246
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
7 changes: 3 additions & 4 deletions health/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"time"

health "github.com/AppsFlyer/go-sundheit"
healthlib "github.com/AppsFlyer/go-sundheit"

"github.com/ava-labs/avalanchego/utils/constants"
)
Expand All @@ -29,7 +28,7 @@ func NewService(checkFreq time.Duration) Service {
// service implements Service
type service struct {
// performs the underlying health checks
health healthlib.Health
health health.Health
// Time between health checks
checkFreq time.Duration
}
Expand All @@ -53,7 +52,7 @@ func (s *service) RegisterCheck(name string, checkFn Check) error {
checkFn: checkFn,
}

return s.health.RegisterCheck(&healthlib.Config{
return s.health.RegisterCheck(&health.Config{
InitialDelay: constants.DefaultHealthCheckInitialDelay,
ExecutionPeriod: s.checkFreq,
Check: check,
Expand All @@ -70,7 +69,7 @@ func (s *service) RegisterMonotonicCheck(name string, checkFn Check) error {
},
}

return s.health.RegisterCheck(&healthlib.Config{
return s.health.RegisterCheck(&health.Config{
InitialDelay: constants.DefaultHealthCheckInitialDelay,
ExecutionPeriod: s.checkFreq,
Check: c,
Expand Down
3 changes: 1 addition & 2 deletions snow/engine/common/bootstrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import (
"fmt"
"time"

"github.com/ava-labs/avalanchego/snow/validators"

stdmath "math"

"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/snow/validators"
"github.com/ava-labs/avalanchego/utils/math"
)

Expand Down
1 change: 1 addition & 0 deletions snow/networking/sender/sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"time"

"github.com/prometheus/client_golang/prometheus"

"github.com/stretchr/testify/assert"

"github.com/ava-labs/avalanchego/ids"
Expand Down
3 changes: 2 additions & 1 deletion snow/networking/timeout/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"fmt"
"time"

"github.com/prometheus/client_golang/prometheus"

"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/snow"
"github.com/ava-labs/avalanchego/utils/constants"
"github.com/ava-labs/avalanchego/utils/timer"
"github.com/ava-labs/avalanchego/utils/wrappers"
"github.com/prometheus/client_golang/prometheus"
)

const (
Expand Down
6 changes: 4 additions & 2 deletions utils/timer/adaptive_timeout_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ import (
"testing"
"time"

"github.com/prometheus/client_golang/prometheus"

"github.com/stretchr/testify/assert"

"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/utils"
"github.com/ava-labs/avalanchego/utils/constants"
"github.com/prometheus/client_golang/prometheus"
"github.com/stretchr/testify/assert"
)

// Test that Initialize works
Expand Down
4 changes: 2 additions & 2 deletions vms/platformvm/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
"bytes"
"encoding/json"
"fmt"

"strings"
"testing"

"github.com/stretchr/testify/assert"

"github.com/ava-labs/avalanchego/api"
"github.com/ava-labs/avalanchego/api/keystore"
"github.com/ava-labs/avalanchego/ids"
Expand All @@ -20,7 +21,6 @@ import (
"github.com/ava-labs/avalanchego/vms/avm"
"github.com/ava-labs/avalanchego/vms/components/avax"
"github.com/ava-labs/avalanchego/vms/secp256k1fx"
"github.com/stretchr/testify/assert"

cjson "github.com/ava-labs/avalanchego/utils/json"
)
Expand Down

0 comments on commit fe72246

Please sign in to comment.