mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 20:52:33 +02:00
metrics: fix not using context
This commit is contained in:
parent
4f94a0f08a
commit
b7b5090673
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ func (s *SystemInfo) collectNetworkInfo(ctx context.Context, lastResult *SystemI
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *SystemInfo) collectSensorsInfo(ctx context.Context) error {
|
func (s *SystemInfo) collectSensorsInfo(ctx context.Context) error {
|
||||||
sensorsInfo, err := sensors.SensorsTemperatures()
|
sensorsInfo, err := sensors.TemperaturesWithContext(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue