Skip to content

Commit

Permalink
Add back ratelimiter from post debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ekarlso authored and smileisak committed Sep 24, 2024
1 parent b45485b commit b4faddf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
xpcontroller "github.com/crossplane/crossplane-runtime/pkg/controller"
"github.com/crossplane/crossplane-runtime/pkg/feature"
"github.com/crossplane/crossplane-runtime/pkg/logging"
"github.com/crossplane/crossplane-runtime/pkg/ratelimiter"
"github.com/crossplane/crossplane-runtime/pkg/resource"
tjcontroller "github.com/crossplane/upjet/pkg/controller"
"github.com/crossplane/upjet/pkg/terraform"
Expand Down Expand Up @@ -83,8 +84,8 @@ func main() {
kingpin.FatalIfError(apis.AddToScheme(mgr.GetScheme()), "Cannot add OVH APIs to scheme")
o := tjcontroller.Options{
Options: xpcontroller.Options{
Logger: log,
// GlobalRateLimiter: ratelimiter.NewGlobal(*maxReconcileRate),
Logger: log,
GlobalRateLimiter: ratelimiter.NewGlobal(*maxReconcileRate),
PollInterval: *pollInterval,
MaxConcurrentReconciles: *maxReconcileRate,
Features: &feature.Flags{},
Expand Down

0 comments on commit b4faddf

Please sign in to comment.