mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Fix duplicated imports (#9304)
* Fix duplicated imports * Fix metrics test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user