0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 00:58:26 -05:00

📎 Fix linter issues.

This commit is contained in:
Andrey Antukh 2021-12-30 19:43:05 +01:00
parent 9f0e156916
commit 79e5716f36
4 changed files with 6 additions and 12 deletions

View file

@ -12,7 +12,6 @@
[app.common.spec :as us]
[app.http.doc :as doc]
[app.http.errors :as errors]
[app.http.debug :as debug]
[app.http.middleware :as middleware]
[app.metrics :as mtx]
[clojure.spec.alpha :as s]

View file

@ -9,17 +9,14 @@
[app.common.data :as d]
[app.common.exceptions :as ex]
[app.common.spec :as us]
[app.common.transit :as t]
[app.common.uuid :as uuid]
[clojure.pprint :as ppr]
[app.config :as cf]
[app.db :as db]
[app.util.template :as tmpl]
[clojure.java.io :as io]
[app.rpc.queries.profile :as profile]
[app.util.blob :as blob]
[app.util.json :as json]
[clojure.spec.alpha :as s]
[app.util.template :as tmpl]
[clojure.java.io :as io]
[clojure.pprint :as ppr]
[cuerdas.core :as str]
[integrant.core :as ig]))
@ -67,7 +64,7 @@
(prepare-response (some-> file :data blob/decode))))))
(defn retrieve-file-changes
[{:keys [pool]} {:keys [params path-params profile-id] :as request}]
[{:keys [pool]} request]
(when-not (authorized? pool request)
(ex/raise :type :authentication
:code :only-admins-allowed))
@ -143,7 +140,7 @@
;; TODO: error list table
(defmethod ig/init-key ::handlers
[_ {:keys [pool] :as cfg}]
[_ cfg]
{:retrieve-file-data (partial retrieve-file-data cfg)
:retrieve-file-changes (partial retrieve-file-changes cfg)
:retrieve-error (partial retrieve-error cfg)})

View file

@ -7,9 +7,7 @@
(ns app.loggers.database
"A specific logger impl that persists errors on the database."
(:require
[app.common.exceptions :as ex]
[app.common.logging :as l]
[app.common.spec :as us]
[app.common.uuid :as uuid]
[app.config :as cf]
[app.db :as db]

View file

@ -67,7 +67,7 @@
created-at (dt/now)
on-terminate
(fn [& args]
(fn [& _args]
(when (compare-and-set! terminated false true)
(call-mtx metrics :connections {:cmd :dec :by 1})
(call-mtx metrics :sessions {:val (/ (inst-ms (dt/diff created-at (dt/now))) 1000.0)})