Skip to content

Commit fb4f9ec

Browse files
committed
Updated
1 parent da48dab commit fb4f9ec

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

pkg/cert/config/config.go

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,8 @@ func (c Config) New(ctx context.Context) (server.Task, error) {
7373

7474
// Queue ticker and queue to check for SSL expiry
7575
if c.Queue != nil {
76-
if _, err := c.Queue.RegisterTicker(ctx, pgqueue.TickerMeta{
77-
Ticker: c.Name(),
78-
Interval: types.DurationPtr(time.Minute),
79-
}, func(ctx context.Context, _ any) error {
80-
ref.Log(ctx).Print(ctx, "Checking for SSL expiry...")
81-
return nil
82-
}); err != nil {
83-
return nil, err
84-
}
85-
if _, err := c.Queue.RegisterQueue(ctx, pgqueue.QueueMeta{
86-
Queue: c.Name(),
87-
TTL: types.DurationPtr(time.Minute),
88-
}, func(ctx context.Context, _ any) error {
89-
ref.Log(ctx).Print(ctx, "Checking for SSL expiry...")
76+
if _, err := c.Queue.RegisterTicker(ctx, pgqueue.TickerMeta{Ticker: c.Name(), Interval: types.DurationPtr(time.Hour)}, func(ctx context.Context, _ any) error {
77+
ref.Log(ctx).Print(ctx, "TODO: Checking for SSL expiry...")
9078
return nil
9179
}); err != nil {
9280
return nil, err

0 commit comments

Comments
 (0)