Skip to content

Commit

Permalink
Skip backup to reduce latency.
Browse files Browse the repository at this point in the history
  • Loading branch information
whilo committed Nov 17, 2024
1 parent 848ebe2 commit d47e2bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{:paths ["src"]
:deps {com.taoensso/timbre {:mvn/version "5.1.2"}
io.replikativ/konserve {:mvn/version "0.7.285"}
io.replikativ/konserve {:mvn/version "0.7.319"}
io.replikativ/superv.async {:mvn/version "0.3.43"}
org.clojure/clojure {:mvn/version "1.10.3"}

Expand Down
6 changes: 4 additions & 2 deletions src/konserve_s3/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
[konserve.impl.storage-layout :refer [PBackingStore PBackingBlob PBackingLock -delete-store header-size]]
[konserve.utils :refer [async+sync *default-sync-translation*]]
[superv.async :refer [go-try-]]
[taoensso.timbre :refer [info trace]])
[taoensso.timbre :refer [info trace]]
[clojure.core.async :refer [chan]])
(:import [java.io ByteArrayInputStream ByteArrayOutputStream]
[java.util Arrays]
;; AWS API
Expand Down Expand Up @@ -270,7 +271,8 @@
backing (S3Bucket. (s3-client s3-spec) (:bucket s3-spec) (:store-id s3-spec))
config (merge {:opts complete-opts
:config {:sync-blob? true
:in-place? false
:in-place? true
:no-backup? true
:lock-blob? true}
:default-serializer :FressianSerializer
:buffer-size (* 1024 1024)}
Expand Down

0 comments on commit d47e2bf

Please sign in to comment.