fix 修复没达到阈值就推送的bug

This commit is contained in:
timerzz 2024-12-03 09:34:04 +08:00
parent 03ad24f689
commit 1e799ae1c2

View File

@ -36,6 +36,7 @@ func NewController(ctx context.Context, cfg *options.Config, client *coach_clien
ctx: ctx, ctx: ctx,
providerId: cfg.ProviderId, providerId: cfg.ProviderId,
interval: cfg.AtsInterval, interval: cfg.AtsInterval,
threshold: cfg.AtsThreshold,
client: client, client: client,
storage: storage.NewStorage(db), storage: storage.NewStorage(db),
tracers: NewTracers(storage.NewStorage(db), cfg.ProviderId), tracers: NewTracers(storage.NewStorage(db), cfg.ProviderId),