(crontab *cron.Cron)
| 77 | } |
| 78 | |
| 79 | func (module *NewCronModule) ProvideCron(crontab *cron.Cron) { |
| 80 | crontab.Add("* * * * * *", func(ctx context.Context) error { |
| 81 | atomic.StoreUint32(&module.CanRun, 1) |
| 82 | return nil |
| 83 | }) |
| 84 | } |
| 85 | |
| 86 | func TestServeIn_cron_deprecation(t *testing.T) { |
| 87 | c := Default(WithInline("grpc.disable", true), WithInline("http.disable", true)) |