Skip to content

Commit

Permalink
chore: explicitly pass in now
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon committed Jul 24, 2024
1 parent 14d6b1c commit 7674959
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion google/cloud/alloydb/connector/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ async def _refresh_operation(self, delay: int) -> ConnectionInfo:
# if valid refresh, replace current with valid refresh result and schedule next refresh
self._current = refresh_task
# calculate refresh delay based on certificate expiration
delay = _seconds_until_refresh(refresh_result.expiration)
delay = _seconds_until_refresh(
refresh_result.expiration, datetime.now(timezone.utc)
)
logger.debug(
f"['{self._instance_uri}']: Connection info refresh operation"
" scheduled for "
Expand Down

0 comments on commit 7674959

Please sign in to comment.