Skip to content

Commit 7861c68

Browse files
committed
Fix struct name that was spelt incorrectly
Signed-off-by: Remy Suen <remy.suen@docker.com>
1 parent d1f6056 commit 7861c68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/telemetry/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (c *TelemetryClientImpl) Publish(ctx context.Context) (int, error) {
9696

9797
records := c.trimRecords()
9898

99-
payload := &TelemetryPaylad{Records: records}
99+
payload := &TelemetryPayload{Records: records}
100100
b, err := json.Marshal(payload)
101101
if err != nil {
102102
return 0, fmt.Errorf("failed to marshal telemetry payload: %w", err)

internal/telemetry/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ServerHeartbeatTypePanic = "panic"
1212
const ServerUserActionTypeCommandExecuted = "commandExecuted"
1313
const ServerUserActionTypeFileAnalyzed = "fileAnalyzed"
1414

15-
type TelemetryPaylad struct {
15+
type TelemetryPayload struct {
1616
Records []Record `json:"records"`
1717
}
1818

0 commit comments

Comments
 (0)