Skip to content

feat: reduce auth requests#100

Merged
spacewander merged 4 commits into
api7:masterfrom
spacewander:reduce
Dec 8, 2020
Merged

feat: reduce auth requests#100
spacewander merged 4 commits into
api7:masterfrom
spacewander:reduce

Conversation

@spacewander

Copy link
Copy Markdown
Contributor

No description provided.

@spacewander
spacewander marked this pull request as ready for review December 3, 2020 02:55
Comment thread lib/resty/etcd/v3.lua
return nil, self.last_refresh_jwt_err
end

-- something unexpected happened, try again

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed.

Comment thread lib/resty/etcd/v3.lua Outdated
local encode_json = cjson.encode
local encode_base64 = ngx.encode_base64
local decode_base64 = ngx.decode_base64
local semaphore = require("ngx.semaphore")

Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed.

@membphis

membphis commented Dec 8, 2020

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor Author

@membphis
Let's do it.

@membphis

membphis commented Dec 8, 2020

Copy link
Copy Markdown
Contributor

#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.

4 participants