Skip to content

Commit

Permalink
update destructuring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Aliiev authored and Arthur Aliiev committed Mar 7, 2024
1 parent 12075d5 commit 04708e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/spootnik/reporter/impl.clj
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
prometheus-registry)
opts)))]

(rs/init! (:dsn sentry) sentry)
(rs/init! sentry)

(when-not prevent-capture?
(with-uncaught e
Expand Down Expand Up @@ -439,7 +439,7 @@
(when prometheus
(.close ^java.io.Closeable (:server prometheus)))

(rs/close! (:dsn sentry)))
(rs/close! sentry))

(assoc this
:raven-options nil
Expand Down
6 changes: 3 additions & 3 deletions src/spootnik/reporter/sentry.clj
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@

(swap! http-requests-payload-stub conj event))))

(defn init! [dsn sentry]
(defn init! [{:keys [dsn] :as sentry}]
(if-not (in-memory? dsn)
(sentry-io/init! (:dsn sentry) sentry)
(sentry-io/init! dsn sentry)
(reset! http-requests-payload-stub [])))

(defn close! [dsn]
(defn close! [{:keys [dsn]}]
(if-not (in-memory? dsn)
(sentry-io/close!)
(reset! http-requests-payload-stub nil)))

0 comments on commit 04708e0

Please sign in to comment.