mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-26 06:28:18 +02:00
add test, fix bug
This commit is contained in:
parent
edaf99b800
commit
71e306f76c
3 changed files with 154 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue