From 9e64123e2020cca246b597e1aef2dda041d56196 Mon Sep 17 00:00:00 2001 From: Anatolie Lupacescu Date: Thu, 3 Oct 2024 20:51:58 +0300 Subject: [PATCH] apply formatting --- operator/validator/controller.go | 4 ++-- operator/validators/validators_map.go | 1 - operator/validators/validators_map_test.go | 11 ++++++----- protocol/v2/ssv/validator/committee.go | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/operator/validator/controller.go b/operator/validator/controller.go index d3deffab0b..4276833b5c 100644 --- a/operator/validator/controller.go +++ b/operator/validator/controller.go @@ -14,13 +14,13 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/jellydator/ttlcache/v3" "github.com/pkg/errors" + "go.uber.org/zap" + genesisspecqbft "github.com/ssvlabs/ssv-spec-pre-cc/qbft" genesisspecssv "github.com/ssvlabs/ssv-spec-pre-cc/ssv" genesisspectypes "github.com/ssvlabs/ssv-spec-pre-cc/types" specqbft "github.com/ssvlabs/ssv-spec/qbft" spectypes "github.com/ssvlabs/ssv-spec/types" - "go.uber.org/zap" - "github.com/ssvlabs/ssv/exporter/convert" "github.com/ssvlabs/ssv/ibft/genesisstorage" "github.com/ssvlabs/ssv/ibft/storage" diff --git a/operator/validators/validators_map.go b/operator/validators/validators_map.go index f664fb116d..92ee82c42a 100644 --- a/operator/validators/validators_map.go +++ b/operator/validators/validators_map.go @@ -6,7 +6,6 @@ import ( "sync" spectypes "github.com/ssvlabs/ssv-spec/types" - "github.com/ssvlabs/ssv/protocol/v2/ssv/validator" ) diff --git a/operator/validators/validators_map_test.go b/operator/validators/validators_map_test.go index 2b9f6ff40a..b1e679d05c 100644 --- a/operator/validators/validators_map_test.go +++ b/operator/validators/validators_map_test.go @@ -5,13 +5,14 @@ import ( "testing" "github.com/attestantio/go-eth2-client/spec/phase0" + "github.com/stretchr/testify/assert" + "go.uber.org/zap" + specssv "github.com/ssvlabs/ssv-spec/ssv" spectypes "github.com/ssvlabs/ssv-spec/types" - tests2 "github.com/ssvlabs/ssv/integration/qbft/tests" + "github.com/ssvlabs/ssv/integration/qbft/tests" "github.com/ssvlabs/ssv/operator/validators" "github.com/ssvlabs/ssv/protocol/v2/ssv/validator" - "github.com/stretchr/testify/assert" - "go.uber.org/zap" ) func TestUpdateCommitteeAtomic(t *testing.T) { @@ -33,7 +34,7 @@ func TestUpdateCommitteeAtomic(t *testing.T) { ctx, cancel, zap.NewNop(), - tests2.NewTestingBeaconNodeWrapped().GetBeaconNetwork(), + tests.NewTestingBeaconNodeWrapped().GetBeaconNetwork(), &new(specssv.Committee).CommitteeMember, nil, map[phase0.ValidatorIndex]*spectypes.Share{ 0: new(spectypes.Share), @@ -63,7 +64,7 @@ func TestUpdateCommitteeAtomic(t *testing.T) { ctx, cancel, zap.NewNop(), - tests2.NewTestingBeaconNodeWrapped().GetBeaconNetwork(), + tests.NewTestingBeaconNodeWrapped().GetBeaconNetwork(), &new(specssv.Committee).CommitteeMember, nil, map[phase0.ValidatorIndex]*spectypes.Share{ 0: new(spectypes.Share), diff --git a/protocol/v2/ssv/validator/committee.go b/protocol/v2/ssv/validator/committee.go index cc0c25b30d..1ab2588925 100644 --- a/protocol/v2/ssv/validator/committee.go +++ b/protocol/v2/ssv/validator/committee.go @@ -11,10 +11,10 @@ import ( "github.com/attestantio/go-eth2-client/spec/phase0" "github.com/pkg/errors" - "github.com/ssvlabs/ssv-spec/qbft" - spectypes "github.com/ssvlabs/ssv-spec/types" "go.uber.org/zap" + "github.com/ssvlabs/ssv-spec/qbft" + spectypes "github.com/ssvlabs/ssv-spec/types" "github.com/ssvlabs/ssv/ibft/storage" "github.com/ssvlabs/ssv/logging/fields" "github.com/ssvlabs/ssv/protocol/v2/message"