Preliminary filer changes

This commit is contained in:
Søren Rasmussen 2022-03-11 20:46:39 +01:00
parent 2d4dfa73d6
commit 2b86e83bb6

View file

@ -47,7 +47,7 @@ func serve(ctx context.Context, wg *sync.WaitGroup, sub *nats.Subscription, db *
case "state":
q := "INSERT INTO fermentor.state (c_time, state) VALUES ($1, $2)"
// TODO Unmarshal JSON.
if _, err := tx.Query(ctx, q, ); err != nil {
if _, err := tx.Query(ctx, q); err != nil {
return err
}
@ -83,7 +83,7 @@ func main() {
// Sentry
err := sentry.Init(sentry.ClientOptions{
Dsn: "https://7278625538334140991ce433e0ad292f@sentry.joco.dk/24",
TracesSampleRate: 1.0,
TracesSampleRate: 0.1,
})
if err != nil {
log.Fatal(err)
@ -122,5 +122,4 @@ func main() {
log.Print("Shutting down")
shutdown()
log.Print("Shutdown complete")
}