Skip to content

Commit 7055e06

Browse files
committed
rename struct element for linter
Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
1 parent 1c86e26 commit 7055e06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/pkg/reporter/fleet/reporter.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
type event struct {
1919
AgentID string `json:"agent_id"`
2020
EventType string `json:"type"`
21-
Ts fleetapi.Time `json:"timestamp"`
21+
TS fleetapi.Time `json:"timestamp"`
2222
SubType string `json:"subtype"`
2323
Msg string `json:"message"`
2424
Payload map[string]interface{} `json:"payload,omitempty"`
@@ -29,7 +29,7 @@ func (e *event) Type() string {
2929
}
3030

3131
func (e *event) Timestamp() time.Time {
32-
return time.Time(e.Ts)
32+
return time.Time(e.TS)
3333
}
3434

3535
func (e *event) Message() string {
@@ -70,7 +70,7 @@ func (r *Reporter) Report(ctx context.Context, e reporter.Event) error {
7070
r.queue = append(r.queue, &event{
7171
AgentID: r.info.AgentID(),
7272
EventType: e.Type(),
73-
Ts: fleetapi.Time(e.Time()),
73+
TS: fleetapi.Time(e.Time()),
7474
SubType: e.SubType(),
7575
Msg: e.Message(),
7676
Payload: e.Payload(),

0 commit comments

Comments
 (0)