Skip to content

Commit

Permalink
chore(all): add leading space in exported comments (#2773)
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 authored Aug 23, 2022
1 parent f635c59 commit b83738e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dot/core/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func (s *Service) HandleSubmittedExtrinsic(ext types.Extrinsic) error {
return nil
}

//GetMetadata calls runtime Metadata_metadata function
// GetMetadata calls runtime Metadata_metadata function
func (s *Service) GetMetadata(bhash *common.Hash) ([]byte, error) {
var (
stateRootHash *common.Hash
Expand Down
4 changes: 2 additions & 2 deletions dot/rpc/modules/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/ChainSafe/gossamer/pkg/scale"
)

//StateGetReadProofRequest json fields
// StateGetReadProofRequest json fields
type StateGetReadProofRequest struct {
Keys []string
Hash common.Hash
Expand Down Expand Up @@ -112,7 +112,7 @@ type StateStorageKeysResponse []string
// StateMetadataResponse holds the metadata
type StateMetadataResponse string

//StateGetReadProofResponse holds the response format
// StateGetReadProofResponse holds the response format
type StateGetReadProofResponse struct {
At common.Hash `json:"at"`
Proof []string `json:"proof"`
Expand Down
2 changes: 1 addition & 1 deletion dot/state/storage_notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (kv KeyValue) String() string {
return fmt.Sprintf("{Key: 0x%x, Value: 0x%x}", kv.Key, kv.Value)
}

//SubscriptionResult holds results of storage changes
// SubscriptionResult holds results of storage changes
type SubscriptionResult struct {
Hash common.Hash
Changes []KeyValue
Expand Down
2 changes: 1 addition & 1 deletion lib/babe/babe.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type ServiceIFace interface {
// Builder struct to hold babe builder functions
type Builder struct{}

//NewServiceIFace returns a new Babe Service using the provided VRF keys and runtime
// NewServiceIFace returns a new Babe Service using the provided VRF keys and runtime
func (Builder) NewServiceIFace(cfg *ServiceConfig) (ServiceIFace, error) {
if err := cfg.Validate(); err != nil {
return nil, fmt.Errorf("could not verify service config: %w", err)
Expand Down
4 changes: 2 additions & 2 deletions lib/crypto/keypair.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ type KeyType = string
// Ed25519Type ed25519
const Ed25519Type KeyType = "ed25519"

//Sr25519Type sr25519
// Sr25519Type sr25519
const Sr25519Type KeyType = "sr25519"

//Secp256k1Type secp256k1
// Secp256k1Type secp256k1
const Secp256k1Type KeyType = "secp256k1"

// UnknownType is used by the GenericKeystore
Expand Down

0 comments on commit b83738e

Please sign in to comment.