Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
;; —————————————————————————————————————
;; BASE

(defparameter *connection-timeout* 20
"Override drakma's :connection-timeout default for any function that uses ipfs-call")

;; STRING LIST [:LIST :BOOLEAN :SYMBOL] → STRING | ALIST | (NIL STRING)
(defun ipfs-call (call arguments &key (parameters nil) (want-stream nil)
(method :POST))
Expand All @@ -35,6 +38,7 @@
(make-call-url call arguments)
:method method
:url-encoder #'ipfs::url-encode
:connection-timeout *connection-timeout*
:parameters parameters
:want-stream want-stream))))
(if want-stream
Expand Down
3 changes: 2 additions & 1 deletion package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,5 @@
;; version calls
:version
:version-deps
#:with-files-write))
#:with-files-write
#:*connection-timeout*))