summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-03-03 09:42:34 +0800
committereltrac <hi@eltr.ac>2026-03-03 09:42:34 +0800
commitbf1e765049ec85f6d60f9c3d24a953fdf914438a (patch)
tree4ea7f930d311a23a70a98ce60c86dacc86ce1fae /src
parentf07f6db9cec2a27c4abcbe8b012fd13e6f89f115 (diff)
perf: avoid unnecessary call to go block
see https://clojure.org/guides/core_async_go
Diffstat (limited to 'src')
-rw-r--r--src/weepinbell/receiver.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/weepinbell/receiver.clj b/src/weepinbell/receiver.clj
index 4a9c4b0..b034b91 100644
--- a/src/weepinbell/receiver.clj
+++ b/src/weepinbell/receiver.clj
@@ -3,7 +3,7 @@
(:import [org.apache.commons.validator.routines UrlValidator]
[java.net URI])
(:require [weepinbell.config :refer [get-config]]
- [clojure.core.async :refer [go chan >!]]))
+ [clojure.core.async :refer [chan put!]]))
;; validation utilities
(defn valid-http-url? [url]
@@ -56,7 +56,7 @@
;;
;; Webmention verification SHOULD be handled asynchronously
;; to prevent DoS (Denial of Service) attacks.
- (go (>! wmc wm))
+ (put! wmc wm)
{:status 202
:headers {"Content-Type" "text/plain"}
:body "Webmention accepted"}))))