Skip to content

Commit

Permalink
fix(tracker): use correct context
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Sep 25, 2023
1 parent 05b3b1b commit 8736dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (t *SensorTracker) updateSensor(ctx context.Context, config agent, sensorUp
// sensor state update. It takes any number of sensor state updates of any type
// and handles them as appropriate.
func (t *SensorTracker) UpdateSensors(ctx context.Context, sensors ...interface{}) error {
g, _ := errgroup.WithContext(context.TODO())
g, _ := errgroup.WithContext(ctx)
sensorData := make(chan interface{}, len(sensors))

for i := 0; i < len(sensors); i++ {
Expand Down

0 comments on commit 8736dc4

Please sign in to comment.