Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
idantavor committed Jul 31, 2023
1 parent d3a50f5 commit 7db610f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,10 @@ see more [here](https://appsflyer.github.io/aerospike-clj/advanced-async-hooks.h
["localhost"]
"test"
{:client-events (reify ClientEvents
(on-success [_ op-name op-result index op-start-time ctx]
(when (-> ctx :enable-logging?)
(on-success [_ op-name op-result index op-start-time]
(println op-name "success!")))
(on-failure [_ op-name op-ex index op-start-time ctx]
(println "oh-no" op-name "failed on index" index)))})]
(on-failure [_ op-name op-ex index op-start-time]
(println "oh-no" op-name "failed on index" index)))})]

(get-single c "index" "set-name"))
; for better performance, a `deftype` might be preferred over `reify`, if possible.
Expand Down

0 comments on commit 7db610f

Please sign in to comment.