Skip to content

Commit

Permalink
rename struct element for linter
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
  • Loading branch information
florianl committed Jul 28, 2022
1 parent 1c86e26 commit 7055e06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/pkg/reporter/fleet/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
type event struct {
AgentID string `json:"agent_id"`
EventType string `json:"type"`
Ts fleetapi.Time `json:"timestamp"`
TS fleetapi.Time `json:"timestamp"`
SubType string `json:"subtype"`
Msg string `json:"message"`
Payload map[string]interface{} `json:"payload,omitempty"`
Expand All @@ -29,7 +29,7 @@ func (e *event) Type() string {
}

func (e *event) Timestamp() time.Time {
return time.Time(e.Ts)
return time.Time(e.TS)
}

func (e *event) Message() string {
Expand Down Expand Up @@ -70,7 +70,7 @@ func (r *Reporter) Report(ctx context.Context, e reporter.Event) error {
r.queue = append(r.queue, &event{
AgentID: r.info.AgentID(),
EventType: e.Type(),
Ts: fleetapi.Time(e.Time()),
TS: fleetapi.Time(e.Time()),
SubType: e.SubType(),
Msg: e.Message(),
Payload: e.Payload(),
Expand Down

0 comments on commit 7055e06

Please sign in to comment.