Skip to content

Commit

Permalink
Merge pull request #10 from jeremyje/fixes
Browse files Browse the repository at this point in the history
No file sync add timestamps
  • Loading branch information
jeremyje authored Oct 25, 2022
2 parents 23a1cda + 01e639b commit a3386d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/jeremyje/coretemp-exporter
go 1.18

require (
github.com/jeremyje/coretempsdk-go v0.5.0
github.com/jeremyje/coretempsdk-go v0.6.0
github.com/prometheus/client_golang v1.13.0
go.opentelemetry.io/otel v1.11.0
go.opentelemetry.io/otel/exporters/prometheus v0.32.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5m
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/jeremyje/coretempsdk-go v0.5.0 h1:BCpO0aFwQ/tvlhscusLAt5RJ6H9NHwXMxoYFrn3mNIs=
github.com/jeremyje/coretempsdk-go v0.5.0/go.mod h1:VwgOwXdg3aFQB6ml0+fJ04LRaCD8SgmTC20TDVfKl9s=
github.com/jeremyje/coretempsdk-go v0.6.0 h1:SyDeu8j+NvcYfFSHsQROddW1C0i421FOmcNddbX/roY=
github.com/jeremyje/coretempsdk-go v0.6.0/go.mod h1:VwgOwXdg3aFQB6ml0+fJ04LRaCD8SgmTC20TDVfKl9s=
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
Expand Down
3 changes: 0 additions & 3 deletions internal/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,5 @@ func (s *fileSink) Observe(ctx context.Context, info *coretempsdk.CoreTempInfo)
if _, err := s.fp.Write(newlineAsByte); err != nil {
log.Printf("ERROR: %s", err)
}
if err := s.fp.Sync(); err != nil {
log.Printf("ERROR: %s", err)
}
}
}

0 comments on commit a3386d2

Please sign in to comment.