From ab5d7cdab5edfc7c371d96d7b1da0eed11c49ba9 Mon Sep 17 00:00:00 2001 From: Andrei-Alexandru Dobre Date: Tue, 7 Jan 2025 13:56:01 +0100 Subject: [PATCH] chore: remove tracing: --- internal/slackExt/client_rate_limit.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/slackExt/client_rate_limit.go b/internal/slackExt/client_rate_limit.go index 68e2ac4..261251b 100644 --- a/internal/slackExt/client_rate_limit.go +++ b/internal/slackExt/client_rate_limit.go @@ -2,10 +2,8 @@ package slackExt import ( "context" - "fmt" "time" - "github.com/hashicorp/terraform-plugin-log/tflog" "github.com/slack-go/slack" ) @@ -22,11 +20,8 @@ func rateLimit[R any](ctx context.Context, f func() (R, error), getZeroValue fun } if rateLimitedError, ok := err.(*slack.RateLimitedError); ok { - tflog.Trace(ctx, fmt.Sprintf("Rate limited, waiting %f", rateLimitedError.RetryAfter.Seconds()), map[string]any{}) - select { case <-time.After(rateLimitedError.RetryAfter): - tflog.Trace(ctx, "Rate limit wait complete", map[string]any{}) case <-ctx.Done(): return getZeroValue(), ctx.Err() }