Skip to content

Commit

Permalink
chore: decrease hypertable check ticker duration
Browse files Browse the repository at this point in the history
  • Loading branch information
3n0ugh committed Sep 14, 2024
1 parent 55ecdd7 commit cf678c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pq/timescaledb/hypertable.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewTimescaleDB(ctx context.Context, dsn string) (*TimescaleDB, error) {
return nil, errors.Wrap(err, "new postgresql connection")
}

return &TimescaleDB{conn: conn, ticker: time.NewTicker(time.Minute * 5)}, nil
return &TimescaleDB{conn: conn, ticker: time.NewTicker(time.Second)}, nil
}

func (tdb *TimescaleDB) SyncHyperTables(ctx context.Context) {
Expand All @@ -55,6 +55,7 @@ func (tdb *TimescaleDB) FindHyperTables(ctx context.Context) (map[string]string,
return nil, nil
}
}

return nil, errors.Wrap(err, "hyper tables result")
}

Expand Down

0 comments on commit cf678c9

Please sign in to comment.