Skip to content

Commit

Permalink
go/consensus/events: use underscores instead of dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Feb 15, 2022
1 parent 4a4e017 commit ba0023b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions go/governance/api/api.go
Expand Up @@ -279,7 +279,7 @@ type ProposalSubmittedEvent struct {

// EventKind returns a string representation of this event's kind.
func (e *ProposalSubmittedEvent) EventKind() string {
return "proposal-submitted"
return "proposal_submitted"
}

// ProposalExecutedEvent is emitted when a proposal is executed.
Expand All @@ -290,7 +290,7 @@ type ProposalExecutedEvent struct {

// EventKind returns a string representation of this event's kind.
func (e *ProposalExecutedEvent) EventKind() string {
return "proposal-executed"
return "proposal_executed"
}

// ProposalFinalizedEvent is the event emitted when a proposal is finalized.
Expand All @@ -303,7 +303,7 @@ type ProposalFinalizedEvent struct {

// EventKind returns a string representation of this event's kind.
func (e *ProposalFinalizedEvent) EventKind() string {
return "proposal-finalized"
return "proposal_finalized"
}

// VoteEvent is the event emitted when a vote is cast.
Expand Down
10 changes: 5 additions & 5 deletions go/registry/api/api.go
Expand Up @@ -284,7 +284,7 @@ type EntityEvent struct {

// EventKind returns a string representation of this event's kind.
func (e *EntityEvent) EventKind() string {
return "entity-event"
return "entity"
}

// NodeEvent is the event that is returned via WatchNodes to signify node
Expand All @@ -296,7 +296,7 @@ type NodeEvent struct {

// EventKind returns a string representation of this event's kind.
func (e *NodeEvent) EventKind() string {
return "node-event"
return "node"
}

// RuntimeEvent signifies new runtime registration.
Expand All @@ -306,7 +306,7 @@ type RuntimeEvent struct {

// EventKind returns a string representation of this event's kind.
func (e *RuntimeEvent) EventKind() string {
return "runtime-event"
return "runtime"
}

// NodeUnfrozenEvent signifies when node becomes unfrozen.
Expand All @@ -316,7 +316,7 @@ type NodeUnfrozenEvent struct {

// EventKind returns a string representation of this event's kind.
func (e *NodeUnfrozenEvent) EventKind() string {
return "node-unfrozen-event"
return "node_unfrozen"
}

var _ events.CustomTypedAttribute = (*NodeListEpochEvent)(nil)
Expand All @@ -326,7 +326,7 @@ type NodeListEpochEvent struct{}

// EventKind returns a string representation of this event's kind.
func (e *NodeListEpochEvent) EventKind() string {
return "node-list-epoch-event"
return "node_list_epoch"
}

// EventValue returns a string representation of this event's kind.
Expand Down
4 changes: 2 additions & 2 deletions go/roothash/api/api.go
Expand Up @@ -414,7 +414,7 @@ type ExecutorCommittedEvent struct {

// EventKind returns a string representation of this event's kind.
func (e *ExecutorCommittedEvent) EventKind() string {
return "executor-committ"
return "executor_commit"
}

// ExecutionDiscrepancyDetectedEvent is an execute discrepancy detected event.
Expand All @@ -425,7 +425,7 @@ type ExecutionDiscrepancyDetectedEvent struct {

// EventKind returns a string representation of this event's kind.
func (e *ExecutionDiscrepancyDetectedEvent) EventKind() string {
return "execution-discrepancy"
return "execution_discrepancy"
}

var _ events.CustomTypedAttribute = (*RuntimeIDAttribute)(nil)
Expand Down

0 comments on commit ba0023b

Please sign in to comment.