Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reduce auth requests #100

Merged
merged 4 commits into from Dec 8, 2020
Merged

feat: reduce auth requests #100

merged 4 commits into from Dec 8, 2020

Conversation

spacewander
Copy link
Contributor

No description provided.

return nil, self.last_refresh_jwt_err
end

-- something unexpected happened, try again
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about logging it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@@ -19,6 +20,7 @@ local decode_json = cjson.decode
local encode_json = cjson.encode
local encode_base64 = ngx.encode_base64
local decode_base64 = ngx.decode_base64
local semaphore = require("ngx.semaphore")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to align with the code format above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@membphis
Copy link
Contributor

membphis commented Dec 8, 2020

@spacewander do we need to release a new version after we merge this PR?

@spacewander spacewander merged commit f38adac into api7:master Dec 8, 2020
@spacewander
Copy link
Contributor Author

@membphis
Let's do it.

@membphis
Copy link
Contributor

membphis commented Dec 8, 2020

#104 released version 1.4.3

@spacewander

wfnuser pushed a commit to wfnuser/lua-resty-etcd that referenced this pull request Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants