Skip to content

Commit

Permalink
generation daily filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaceg committed Nov 5, 2024
1 parent 7d7cc02 commit 4b64876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a // indirect
google.golang.org/grpc v1.58.2 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,11 @@ func main() {
for _, filter := range dataFilters {
measurements, err = filter.Filter(measurements)
if err != nil {
log.Printf("filter failed: %s", err)
slog.Error("filter failed: %s", err)
continue
}
}

failedConnections = 0

if hasMQTT {
var m map[string]interface{}
timeStamp := time.Now().UnixNano() / int64(time.Millisecond)
Expand Down

0 comments on commit 4b64876

Please sign in to comment.