We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4556c53 commit b395ddfCopy full SHA for b395ddf
Clojure-Websockets/src/clj/birdwatch/persistence.clj
@@ -101,10 +101,10 @@
101
;; loop for persisting retweets
102
(go
103
(while true
104
- (let [t (<! c/rt-persistence-chan)]
105
- (when (:retweeted_status t)
+ (let [rt (:retweeted_status (<! c/rt-persistence-chan))]
+ (when rt
106
(try
107
- (esd/put conn (:es-index conf) "tweet" (:id_str t) t)
+ (esd/put conn (:es-index conf) "tweet" (:id_str rt) rt)
108
(catch Exception ex (log/error ex "esd/put error")))))))
109
110
;; loop for finding percolation matches and delivering those on the appropriate socket
0 commit comments