Skip to content

Commit c5b7b59

Browse files
committed
tailscale expires ordering
1 parent 4671750 commit c5b7b59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exo/networking/tailscale/tailscale_discovery.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,5 @@ def invalidate_tailscale_api_key(self):
199199
async def tailscale_api_key(self):
200200
if not self._tailscale_api_key[1] or self._tailscale_api_key[0] - time.time() < 60:
201201
_key, _expires_in = await create_tailscale_api_key(self.tailscale_client_id, self.tailscale_client_secret)
202-
self._tailscale_api_key = (_key, time.time() + _expires_in)
203-
return self._tailscale_api_key[0]
202+
self._tailscale_api_key = (time.time() + _expires_in, _key)
203+
return self._tailscale_api_key[1]

0 commit comments

Comments
 (0)