mirror of
https://github.com/penpot/penpot.git
synced 2025-07-31 00:08:31 +02:00
✨ Fix all linter issues on backend code.
This commit is contained in:
parent
6881e3d795
commit
44a21de783
43 changed files with 219 additions and 304 deletions
|
@ -7,13 +7,9 @@
|
|||
(ns app.redis
|
||||
(:refer-clojure :exclude [run!])
|
||||
(:require
|
||||
[clojure.tools.logging :as log]
|
||||
[lambdaisland.uri :refer [uri]]
|
||||
[mount.core :as mount :refer [defstate]]
|
||||
[app.common.exceptions :as ex]
|
||||
[app.config :as cfg]
|
||||
[app.util.data :as data]
|
||||
[app.util.redis :as redis])
|
||||
[app.util.redis :as redis]
|
||||
[mount.core :as mount :refer [defstate]])
|
||||
(:import
|
||||
java.lang.AutoCloseable))
|
||||
|
||||
|
@ -24,10 +20,14 @@
|
|||
(let [uri (:redis-uri config "redis://redis/0")]
|
||||
(redis/client uri)))
|
||||
|
||||
(declare client)
|
||||
|
||||
(defstate client
|
||||
:start (create-client cfg/config)
|
||||
:stop (.close ^AutoCloseable client))
|
||||
|
||||
(declare conn)
|
||||
|
||||
(defstate conn
|
||||
:start (redis/connect client)
|
||||
:stop (.close ^AutoCloseable conn))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue