From 9ca501a3ce0c12d6fd22300eb094abd90bd5b414 Mon Sep 17 00:00:00 2001 From: iurii Date: Fri, 25 Oct 2024 20:17:18 +0300 Subject: [PATCH] format code --- beacon/goclient/goclient.go | 3 +-- operator/node.go | 2 +- operator/validator/controller.go | 3 +-- protocol/v2/qbft/instance/proposal.go | 3 +-- protocol/v2/qbft/instance/round_change.go | 3 +-- protocol/v2/ssv/runner/runner.go | 3 +-- 6 files changed, 6 insertions(+), 11 deletions(-) diff --git a/beacon/goclient/goclient.go b/beacon/goclient/goclient.go index 86e3fbc1f7..8f69ed6a6c 100644 --- a/beacon/goclient/goclient.go +++ b/beacon/goclient/goclient.go @@ -17,13 +17,12 @@ import ( "github.com/prometheus/client_golang/prometheus/promauto" "github.com/rs/zerolog" spectypes "github.com/ssvlabs/ssv-spec/types" - "go.uber.org/zap" - "github.com/ssvlabs/ssv/logging/fields" operatordatastore "github.com/ssvlabs/ssv/operator/datastore" "github.com/ssvlabs/ssv/operator/slotticker" beaconprotocol "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon" "github.com/ssvlabs/ssv/utils/casts" + "go.uber.org/zap" ) const ( diff --git a/operator/node.go b/operator/node.go index 88be3c73bd..be0c482da5 100644 --- a/operator/node.go +++ b/operator/node.go @@ -3,7 +3,6 @@ package operator import ( "context" "fmt" - "go.uber.org/zap" "github.com/ssvlabs/ssv/eth/executionclient" "github.com/ssvlabs/ssv/exporter/api" @@ -21,6 +20,7 @@ import ( beaconprotocol "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon" storage2 "github.com/ssvlabs/ssv/registry/storage" "github.com/ssvlabs/ssv/storage/basedb" + "go.uber.org/zap" ) // Node represents the behavior of SSV node diff --git a/operator/validator/controller.go b/operator/validator/controller.go index 1433aa6e3b..1e2f8997df 100644 --- a/operator/validator/controller.go +++ b/operator/validator/controller.go @@ -19,8 +19,6 @@ import ( 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" @@ -59,6 +57,7 @@ import ( ssvtypes "github.com/ssvlabs/ssv/protocol/v2/types" registrystorage "github.com/ssvlabs/ssv/registry/storage" "github.com/ssvlabs/ssv/storage/basedb" + "go.uber.org/zap" ) //go:generate mockgen -package=mocks -destination=./mocks/controller.go -source=./controller.go diff --git a/protocol/v2/qbft/instance/proposal.go b/protocol/v2/qbft/instance/proposal.go index ab0ef90116..1c57ed271b 100644 --- a/protocol/v2/qbft/instance/proposal.go +++ b/protocol/v2/qbft/instance/proposal.go @@ -6,11 +6,10 @@ import ( "github.com/pkg/errors" specqbft "github.com/ssvlabs/ssv-spec/qbft" spectypes "github.com/ssvlabs/ssv-spec/types" - "go.uber.org/zap" - "github.com/ssvlabs/ssv/logging/fields" "github.com/ssvlabs/ssv/protocol/v2/qbft" ssvtypes "github.com/ssvlabs/ssv/protocol/v2/types" + "go.uber.org/zap" ) // uponProposal process proposal message diff --git a/protocol/v2/qbft/instance/round_change.go b/protocol/v2/qbft/instance/round_change.go index 859f1bb96f..346f9e08d4 100644 --- a/protocol/v2/qbft/instance/round_change.go +++ b/protocol/v2/qbft/instance/round_change.go @@ -6,11 +6,10 @@ import ( "github.com/pkg/errors" specqbft "github.com/ssvlabs/ssv-spec/qbft" spectypes "github.com/ssvlabs/ssv-spec/types" - "go.uber.org/zap" - "github.com/ssvlabs/ssv/logging/fields" "github.com/ssvlabs/ssv/protocol/v2/qbft" ssvtypes "github.com/ssvlabs/ssv/protocol/v2/types" + "go.uber.org/zap" ) // uponRoundChange process round change messages. diff --git a/protocol/v2/ssv/runner/runner.go b/protocol/v2/ssv/runner/runner.go index b9b2146aee..17a2e07f2f 100644 --- a/protocol/v2/ssv/runner/runner.go +++ b/protocol/v2/ssv/runner/runner.go @@ -9,12 +9,11 @@ import ( "github.com/pkg/errors" specqbft "github.com/ssvlabs/ssv-spec/qbft" spectypes "github.com/ssvlabs/ssv-spec/types" - "go.uber.org/zap" - "github.com/ssvlabs/ssv/protocol/v2/blockchain/beacon" "github.com/ssvlabs/ssv/protocol/v2/qbft/controller" "github.com/ssvlabs/ssv/protocol/v2/ssv" ssvtypes "github.com/ssvlabs/ssv/protocol/v2/types" + "go.uber.org/zap" ) type Getters interface {