mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -05:00
✨ Improve storage sharding replacing uuid/next with uuid/random
This commit is contained in:
parent
b5e26fe615
commit
172a39c2e2
2 changed files with 2 additions and 3 deletions
|
@ -88,7 +88,7 @@
|
||||||
[{:keys [conn backend executor]} {:keys [::content ::expired-at ::touched-at] :as params}]
|
[{:keys [conn backend executor]} {:keys [::content ::expired-at ::touched-at] :as params}]
|
||||||
(us/assert ::storage-content content)
|
(us/assert ::storage-content content)
|
||||||
(px/with-dispatch executor
|
(px/with-dispatch executor
|
||||||
(let [id (uuid/next)
|
(let [id (uuid/random)
|
||||||
|
|
||||||
mdata (cond-> (get-metadata params)
|
mdata (cond-> (get-metadata params)
|
||||||
(satisfies? impl/IContentHash content)
|
(satisfies? impl/IContentHash content)
|
||||||
|
|
|
@ -24,9 +24,8 @@ function build-devenv {
|
||||||
|
|
||||||
pushd docker/devenv;
|
pushd docker/devenv;
|
||||||
|
|
||||||
docker buildx inspect penpot > /dev/null 2>&1;
|
|
||||||
docker run --privileged --rm tonistiigi/binfmt --install all
|
docker run --privileged --rm tonistiigi/binfmt --install all
|
||||||
|
docker buildx inspect penpot > /dev/null 2>&1;
|
||||||
|
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
docker buildx create --name=penpot --use
|
docker buildx create --name=penpot --use
|
||||||
|
|
Loading…
Add table
Reference in a new issue