Skip to content

Commit

Permalink
Merge pull request #3 from traveltime-dev/add/comparison-tool
Browse files Browse the repository at this point in the history
add custom user agent
  • Loading branch information
danielnaumau authored Aug 27, 2024
2 parents a0a99bf + 8bb4050 commit 5d0a611
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TravelTimeRequestHandler(BaseRequestHandler):
DESTINATION_ID = "d"

def __init__(self, app_id, api_key, max_rpm):
self.sdk = TravelTimeSdk(app_id, api_key)
self.sdk = TravelTimeSdk(app_id=app_id, api_key=api_key, user_agent="Travel Time Comparison Tool")
self._rate_limiter = AsyncLimiter(max_rpm // 60, 1)

async def send_request(
Expand Down

0 comments on commit 5d0a611

Please sign in to comment.