| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
nice
Sorry, something went wrong.
|
|
||
| if opts.signature_cb ~= nil then | ||
| req = opts.signature_cb(req) | ||
| end |
There was a problem hiding this comment.
上面这些初始化和赋值是不是可以从for循环中拿出去
Sorry, something went wrong.
| end | ||
| end | ||
|
|
||
| if err_code ~= nil then |
There was a problem hiding this comment.
这里可以直接返回错误
Sorry, something went wrong.
| break | ||
| end | ||
| end | ||
| function _M.loop_http_read(pobj, ident, http) |
There was a problem hiding this comment.
上面那几个函数还需要在这里保留吗?
Sorry, something went wrong.
| end | ||
| function _M.connect_http(ips, port, verb, uri, opts) | ||
| return httplib.connect_http(ips, port, verb, uri, opts) | ||
| end |
There was a problem hiding this comment.
感觉直接用httplib的更直接,reader里面也封装了一下
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
1.将一些writer、reader公用的http函数移动到httplib中
2.添加make_aws_put_s3_writer
3.添加make_quorum_http_writers