mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
metrics: fix not using context
This commit is contained in:
@@ -286,7 +286,7 @@ func (s *SystemInfo) collectNetworkInfo(ctx context.Context, lastResult *SystemI
|
||||
}
|
||||
|
||||
func (s *SystemInfo) collectSensorsInfo(ctx context.Context) error {
|
||||
sensorsInfo, err := sensors.SensorsTemperatures()
|
||||
sensorsInfo, err := sensors.TemperaturesWithContext(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user