stock news thing
This commit is contained in:
22
stock_news_publisher/src/main.rs
Normal file
22
stock_news_publisher/src/main.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
use log::info;
|
||||
use redis::{Client, Commands};
|
||||
use std::thread;
|
||||
|
||||
pub const NEWS_API_KEY: &str = "QdRyR4ztkKKeBq8btsOW0QVpiHWPQDnCRa6rBUkG";
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
simple_logger::init().unwrap();
|
||||
info!("Logging operational");
|
||||
// program the publpisher here
|
||||
|
||||
let client = Client::open("redis::/192.168.1.23/").unwrap();
|
||||
|
||||
let mut connection = client.get_connection().unwrap();
|
||||
|
||||
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
struct Notification{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user