add test, fix bug

This commit is contained in:
Caleb Doxsey 2024-09-11 14:16:30 -06:00
parent edaf99b800
commit 71e306f76c
3 changed files with 154 additions and 18 deletions

View file

@ -217,7 +217,7 @@ func (c *controller) runUsageReporter(ctx context.Context, client databroker.Dat
return fmt.Errorf("error waiting for bootstrap: %w", err)
}
ur := usagereporter.New(c.api, c.bootstrapConfig.GetConfig().ZeroOrganizationID)
ur := usagereporter.New(c.api, c.bootstrapConfig.GetConfig().ZeroOrganizationID, time.Minute)
return retry.WithBackoff(ctx, "zero-usage-reporter", func(ctx context.Context) error {
// start the usage reporter
return ur.Run(ctx, client)