Skip to content

pipe一些修改 #4

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

Open
wants to merge 17 commits into
base: siyuan.make_ngx_resp
Choose a base branch
from
Open

pipe一些修改 #4

wants to merge 17 commits into from

Conversation

pengsven
Copy link
Collaborator

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

Copy link

@drmingdrmer drmingdrmer left a comment

Choose a reason for hiding this comment

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

nice


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

Choose a reason for hiding this comment

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

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

end
end

if err_code ~= nil then
Copy link
Contributor

Choose a reason for hiding this comment

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

这里可以直接返回错误

break
end
end
function _M.loop_http_read(pobj, ident, http)
Copy link
Contributor

Choose a reason for hiding this comment

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

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

end
function _M.connect_http(ips, port, verb, uri, opts)
return httplib.connect_http(ips, port, verb, uri, opts)
end
Copy link
Contributor

Choose a reason for hiding this comment

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

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

@drmingdrmer drmingdrmer removed the request for review from liu-s-yuan March 9, 2018 04:57
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