Skip to content

Commit

Permalink
Object 109
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhiya committed Jan 5, 2025
1 parent 366fb10 commit 441b5ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/fittencode/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ local defaults = {
-- Avaiable options:
-- * 'curl'
-- * 'libcurl' (Only available on Linux)
backend = 'curl',
backend = 'libcurl',
-- 0 (zero) which means request never times out during transfer
timeout = 600, -- seconds
curl = {
Expand Down
2 changes: 1 addition & 1 deletion lua/fittencode/hash/md5sum.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function M.hash(method, plaintext, on_success, on_error)
Fn.schedule_call(on_error)
return
end
Process.spawn(md5sum, md5sum.args, {
Process.spawn(md5sum, {
on_input = function()
return plaintext
end,
Expand Down
1 change: 1 addition & 0 deletions lua/fittencode/http/libcurl/init.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package.cpath = package.cpath .. ';' .. require('cpath')
-- package.cpath = package.cpath .. ';' .. require('fittencode.http.libcurl.cpath')

local CC = require('libcurl')
local Fn = require('fittencode.fn')
Expand Down

0 comments on commit 441b5ed

Please sign in to comment.