FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

pipe一些修改 by pengsven · Pull Request #4 · baishancloud/lua-pipe · GitHub

pipe一些修改 - #4

Open
pengsven wants to merge 17 commits into
siyuan.make_ngx_respfrom
test.shuwen
Open

pipe一些修改#4
pengsven wants to merge 17 commits into
siyuan.make_ngx_respfrom
test.shuwen

Conversation

Copy link
Copy Markdown
Collaborator

1.将一些writer、reader公用的http函数移动到httplib中
2.添加make_aws_put_s3_writer
3.添加make_quorum_http_writers

drmingdrmer left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

nice

Comment thread lib/pipe/httplib.lua

if opts.signature_cb ~= nil then
req = opts.signature_cb(req)
end

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

上面这些初始化和赋值是不是可以从for循环中拿出去

Comment thread lib/pipe/httplib.lua
end
end

if err_code ~= nil then

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

这里可以直接返回错误

Comment thread lib/pipe/reader.lua Outdated
break
end
end
function _M.loop_http_read(pobj, ident, http)

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

上面那几个函数还需要在这里保留吗?

Comment thread lib/pipe/writer.lua
end
function _M.connect_http(ips, port, verb, uri, opts)
return httplib.connect_http(ips, port, verb, uri, opts)
end

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

感觉直接用httplib的更直接,reader里面也封装了一下

drmingdrmer removed the request for review from liu-s-yuan March 9, 2018 04:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL