chore: add mercury

This commit is contained in:
xuu committed 2024-02-15 11:59:38 -07:00
1 parent b1cc2af8d8
commit af9633c866
51 files changed
+6635 -52

No files matched your search

+2 -1
View File
@@ -35,10 +35,11 @@ func (s *Harness) Setup(ctx context.Context, apps ...application) error {
ctx, span := lg.Span(ctx)
defer span.End()
s.onRunning = make(chan struct{})
// setup crontab
c := cron.New(cron.DefaultGranularity)
s.OnStart(c.Run)
s.onRunning = make(chan struct{})
s.crontab = c
var err error