Skip to content

Commit

Permalink
url
Browse files Browse the repository at this point in the history
  • Loading branch information
matthagenbuch committed Feb 12, 2024
1 parent 9274b64 commit a0444d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func NewClient(apiKey string, orgName string, baseUrl string) *Client {
}

func NewClientWithUserAgent(apiKey string, orgName string, baseUrl string, userAgent string) *Client {
fullBaseURL := fmt.Sprintf("%s/public/v0.2/%v", baseUrl, orgName)
fullBaseUrl := fmt.Sprintf("%s/public/v0.2/%v", baseUrl, orgName)

rateLimitStr := os.Getenv("LIGHTSTEP_API_RATE_LIMIT")
rateLimit, err := strconv.Atoi(rateLimitStr)
Expand All @@ -94,7 +94,7 @@ func NewClientWithUserAgent(apiKey string, orgName string, baseUrl string, userA
return &Client{
apiKey: apiKey,
orgName: orgName,
baseUrl: fullBaseURL,
baseUrl: fullBaseUrl,
userAgent: userAgent,
rateLimiter: rate.NewLimiter(rate.Limit(rateLimit), 1),
client: newClient,
Expand Down

0 comments on commit a0444d7

Please sign in to comment.