1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-09-16 09:26:25 +02:00

chore: enable unused-receiver rule from revive (#7130)

#### Description

Enable and fixes
[unused-receiver](https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#unused-receiver)
rule from revive

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-08-09 00:38:22 +02:00
committed by GitHub
parent 4b0c8f174b
commit 68841fa6db
53 changed files with 123 additions and 122 deletions

View File

@@ -67,6 +67,6 @@ func (e *Exporter) Shutdown(context.Context) error {
}
// ForceFlush performs no action.
func (e *Exporter) ForceFlush(context.Context) error {
func (*Exporter) ForceFlush(context.Context) error {
return nil
}

View File

@@ -63,7 +63,7 @@ func (e *exporter) Export(ctx context.Context, data *metricdata.ResourceMetrics)
return e.encVal.Load().(encoderHolder).Encode(data)
}
func (e *exporter) ForceFlush(context.Context) error {
func (*exporter) ForceFlush(context.Context) error {
// exporter holds no state, nothing to flush.
return nil
}
@@ -77,7 +77,7 @@ func (e *exporter) Shutdown(context.Context) error {
return nil
}
func (e *exporter) MarshalLog() any {
func (*exporter) MarshalLog() any {
return struct{ Type string }{Type: "STDOUT"}
}