0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

🔥 Remove unused uxbox.locks namespace.

This commit is contained in:
Andrey Antukh 2019-11-22 18:16:09 +01:00
parent e2c664300c
commit 6e062afc67

View file

@ -1,21 +0,0 @@
;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.locks
"Advirsory locks for specific handling concurrent modifications
on particular objects in the database."
#_(:require [suricatta.core :as sc])
(:import clojure.lang.Murmur3))
(defn- uuid->long
[v]
(Murmur3/hashUnencodedChars (str v)))
;; (defn acquire!
;; [conn v]
;; (let [id (uuid->long v)]
;; (sc/execute conn ["select pg_advisory_xact_lock(?);" id])
;; nil))