Skip to content

Instantly share code, notes, and snippets.

@ducky427
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ducky427/451b226a344a73639685 to your computer and use it in GitHub Desktop.
Save ducky427/451b226a344a73639685 to your computer and use it in GitHub Desktop.
(ns neocons-timeout.core
(:require [clojurewerkz.neocons.rest :as nr]
[clojurewerkz.neocons.rest.nodes :as nn]))
(defn -main
[& args]
(let [conn (-> (nr/connect "http://localhost:7474/db/data/")
(assoc-in [:options :socket-timeout] 1000) ;;timeout in milliseconds
(assoc-in [:options :conn-timeout] 1000))]
(println (nr/create conn {:name "John"}))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment