chore: lint v2 (#24118)
This commit is contained in:
+3
-3
@@ -35,7 +35,7 @@ func NewEventManager(ctx context.Context) event.Manager {
|
||||
// Emit emits an typed event that is defined in the protobuf file.
|
||||
// In the future these events will be added to consensus.
|
||||
func (e Events) Emit(ctx context.Context, event protoiface.MessageV1) error {
|
||||
return e.EventManagerI.EmitTypedEvent(event)
|
||||
return e.EmitTypedEvent(event)
|
||||
}
|
||||
|
||||
// EmitKV emits a key value pair event.
|
||||
@@ -46,12 +46,12 @@ func (e Events) EmitKV(ctx context.Context, eventType string, attrs ...event.Att
|
||||
attributes = append(attributes, sdk.NewAttribute(attr.Key, attr.Value))
|
||||
}
|
||||
|
||||
e.EventManagerI.EmitEvents(sdk.Events{sdk.NewEvent(eventType, attributes...)})
|
||||
e.EmitEvents(sdk.Events{sdk.NewEvent(eventType, attributes...)})
|
||||
return nil
|
||||
}
|
||||
|
||||
// Emit emits an typed event that is defined in the protobuf file.
|
||||
// In the future these events will be added to consensus.
|
||||
func (e Events) EmitNonConsensus(ctx context.Context, event protoiface.MessageV1) error {
|
||||
return e.EventManagerI.EmitTypedEvent(event)
|
||||
return e.EmitTypedEvent(event)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user