Improve storage sharding replacing uuid/next with uuid/random

This commit is contained in:
Andrey Antukh 2022-09-12 09:39:44 +02:00 committed by Alejandro Alonso
parent b5e26fe615
commit 172a39c2e2
2 changed files with 2 additions and 3 deletions

View file

@ -88,7 +88,7 @@
[{:keys [conn backend executor]} {:keys [::content ::expired-at ::touched-at] :as params}]
(us/assert ::storage-content content)
(px/with-dispatch executor
(let [id (uuid/next)
(let [id (uuid/random)
mdata (cond-> (get-metadata params)
(satisfies? impl/IContentHash content)