Fix duplicated imports (#9304)

* Fix duplicated imports

* Fix metrics test
This commit is contained in:
terence tsao
2021-07-29 14:45:17 -07:00
committed by GitHub
parent fcd4938ec0
commit 012d279663
130 changed files with 644 additions and 723 deletions

View File

@@ -8,7 +8,6 @@ import (
fastssz "github.com/ferranbt/fastssz"
"github.com/golang/snappy"
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
statepb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
"go.opencensus.io/trace"
"google.golang.org/protobuf/proto"
)
@@ -53,7 +52,7 @@ func encode(ctx context.Context, msg proto.Message) ([]byte, error) {
// isSSZStorageFormat returns true if the object type should be saved in SSZ encoded format.
func isSSZStorageFormat(obj interface{}) bool {
switch obj.(type) {
case *statepb.BeaconState:
case *ethpb.BeaconState:
return true
case *ethpb.SignedBeaconBlock:
return true