Skip to content

Commit

Permalink
Fix remote file operations (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
gameformush authored Apr 15, 2021
1 parent 7cebb0d commit 7b4f425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/clj/clj_camel/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@
"Creates scope with connection to Remote File Storage (e.g FTP)
Out of scope connection is automatically closed
Exposes variable ops in macro body"
[^SftpEndpoint endpoint & body]
[^SftpEndpoint endpoint ex & body]
`(let [~'ops (.createRemoteFileOperations ~endpoint)]
(try
(.connect ~'ops (.getConfiguration ~endpoint))
(.connect ~'ops (.getConfiguration ~endpoint) ex)
~@body
(finally
(.disconnect ~'ops)))))
Expand Down

0 comments on commit 7b4f425

Please sign in to comment.