Merge pull request #8673 from thaJeztah/no_any

avoid "any" as variable name
This commit is contained in:
Derek McGowan
2023-06-10 20:44:30 -07:00
committed by GitHub
25 changed files with 82 additions and 83 deletions

View File

@@ -110,7 +110,7 @@ func (l *RemoteEventsPublisher) Publish(ctx context.Context, topic string, event
if err != nil {
return err
}
any, err := protobuf.MarshalAnyToProto(event)
evt, err := protobuf.MarshalAnyToProto(event)
if err != nil {
return err
}
@@ -119,7 +119,7 @@ func (l *RemoteEventsPublisher) Publish(ctx context.Context, topic string, event
Timestamp: protobuf.ToTimestamp(time.Now()),
Namespace: ns,
Topic: topic,
Event: any,
Event: evt,
},
ctx: ctx,
}