Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Co-authored-by: AlinsRan <[email protected]>
  • Loading branch information
nic-chen and AlinsRan authored Apr 7, 2024
1 parent abdd3cf commit 548dd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resty/etcd/v3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ function refresh_jwt_token(self, timeout)
end

if self.requesting_token then
local wait_timeout = timeout and timeout or (self.timeout and self.timeout or 0)
local wait_timeout = timeout or self.timeout or 0
self.sema:wait(wait_timeout)
if self.jwt_token and now() - self.last_auth_time < 60 * 3 + random(0, 60) then
return true, nil
Expand Down

0 comments on commit 548dd61

Please sign in to comment.