Skip to content

Commit

Permalink
yet more linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bluntelk committed Nov 12, 2023
1 parent 20770d4 commit 8752746
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/pw_router/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (w *worker) handleMsg(msg []byte) error {
}
w.router.syncSamples.Store(merged.Icao, merged)

mergedMsg, err := merged.ToJsonBytes()
mergedMsg, err := merged.ToJSONBytes()
if nil != err {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion lib/export/location.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewPlaneLocation(plane *tracker.Plane, isNew, isRemoved bool, source string
}
}

func (pl *PlaneLocation) ToJsonBytes() ([]byte, error) {
func (pl *PlaneLocation) ToJSONBytes() ([]byte, error) {
json := jsoniter.ConfigFastest

pl.sourceTagsMutex.Lock()
Expand Down
2 changes: 1 addition & 1 deletion lib/sink/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (s *Sink) trackerMsgJson(le *tracker.PlaneLocationEvent) ([]byte, error) {
}

eventStruct := export.NewPlaneLocation(plane, le.New(), le.Removed(), s.config.sourceTag)
return eventStruct.ToJsonBytes()
return eventStruct.ToJSONBytes()
}

func (s *Sink) doSend() {
Expand Down

0 comments on commit 8752746

Please sign in to comment.