Skip to content

Commit 3fe3b93

Browse files
leathekdedporras
authored andcommitted
just use map here
This is simply transforming some keys/vals and doesn't need dmap
1 parent 9751e1d commit 3fe3b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clj/datasplash/pubsub.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Payload must be a string and attributes a map."
2626
[{:keys [payload attributes]}]
2727
(let [attributes-map (->> attributes
28-
(ds/dmap (fn [k v] [(if (keyword? k) (name k) (str k)) (str v)]))
28+
(map (fn [[k v]] [(if (keyword? k) (name k) (str k)) (str v)]))
2929
(into {}))]
3030
(PubsubMessage. (.getBytes payload StandardCharsets/UTF_8) attributes-map)))
3131

0 commit comments

Comments
 (0)