From 6e062afc6748db1e02cb5ce916f9961351f925d9 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 22 Nov 2019 18:16:09 +0100 Subject: [PATCH] :fire: Remove unused uxbox.locks namespace. --- backend/src/uxbox/locks.clj | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 backend/src/uxbox/locks.clj diff --git a/backend/src/uxbox/locks.clj b/backend/src/uxbox/locks.clj deleted file mode 100644 index 361a089bc..000000000 --- a/backend/src/uxbox/locks.clj +++ /dev/null @@ -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 - -(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))