Skip to content

Commit

Permalink
remove unused receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmack committed Jul 27, 2023
1 parent f20b405 commit 3fed085
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/parachain/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (s Service) run() {
}

validationMessage := NewValidationProtocolVDT()
err = validationMessage.Set(statementDistributionLargeStatement)
err = validationMessage.Set(&statementDistributionLargeStatement)
if err != nil {
logger.Errorf("creating test validation message: %w\n", err)
}
Expand Down
20 changes: 10 additions & 10 deletions lib/parachain/validation_protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Bitfield struct {
}

// Index returns the VaryingDataType Index
func (b Bitfield) Index() uint {
func (Bitfield) Index() uint {
return 0
}

Expand All @@ -44,7 +44,7 @@ func NewBitfieldDistributionMessageVDT() BitfieldDistributionMessage {
return BitfieldDistributionMessage(vdt)
}

func (bdm BitfieldDistributionMessage) New() BitfieldDistributionMessage {
func (BitfieldDistributionMessage) New() BitfieldDistributionMessage {
return NewBitfieldDistributionMessageVDT()
}

Expand Down Expand Up @@ -73,10 +73,10 @@ func NewBitfieldDistributionVDT() BitfieldDistribution {
return BitfieldDistribution(vdt)
}

func (bd BitfieldDistribution) Index() uint {
func (BitfieldDistribution) Index() uint {
return 1
}
func (bd BitfieldDistribution) New() BitfieldDistribution {
func (BitfieldDistribution) New() BitfieldDistribution {
return NewBitfieldDistributionVDT()
}

Expand Down Expand Up @@ -104,11 +104,11 @@ func NewApprovalDistributionVDT() ApprovalDistribution {
}

// New returns new ApprovalDistributionMessage VDT
func (ad ApprovalDistribution) New() ApprovalDistribution {
func (ApprovalDistribution) New() ApprovalDistribution {
return NewApprovalDistributionVDT()
}

func (ad ApprovalDistribution) Index() uint {
func (ApprovalDistribution) Index() uint {
return 4
}

Expand All @@ -134,7 +134,7 @@ func NewStatementDistributionVDT() StatementDistribution {
return StatementDistribution(vdt)
}

func (sd StatementDistribution) New() StatementDistribution {
func (StatementDistribution) New() StatementDistribution {
return NewStatementDistributionVDT()
}

Expand All @@ -156,7 +156,7 @@ func (sd *StatementDistribution) Set(val scale.VaryingDataTypeValue) (err error)
return nil
}

func (sd StatementDistribution) Index() uint {
func (StatementDistribution) Index() uint {
return 3
}

Expand All @@ -171,7 +171,7 @@ func NewValidationProtocolVDT() ValidationProtocol {
}

// New returns new ApprovalDistributionMessage VDT
func (vp ValidationProtocol) New() ValidationProtocol {
func (ValidationProtocol) New() ValidationProtocol {
return NewValidationProtocolVDT()
}

Expand All @@ -195,7 +195,7 @@ func (vp *ValidationProtocol) Set(val scale.VaryingDataTypeValue) (err error) {
}

// Type returns ValidationMsgType
func (*ValidationProtocol) Type() network.MessageType {
func (ValidationProtocol) Type() network.MessageType {
return network.ValidationMsgType
}

Expand Down

0 comments on commit 3fed085

Please sign in to comment.