add scrapper TODO: tie stream name to post title
This commit is contained in:
parent
ab800110b2
commit
5da87b8e2a
1 changed files with 1 additions and 0 deletions
|
@ -97,6 +97,7 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
info!("Received post {:?}", news_post);
|
||||
if news_post.is_complete() {
|
||||
let title = news_post.title.clone().unwrap();
|
||||
// TODO: add stream name in the flag key
|
||||
if !redis_service.is_key_flagged(&title).await {
|
||||
let published = redis_service
|
||||
.publish(&args.redis_stream_name, &news_post)
|
||||
|
|
Loading…
Reference in a new issue