Skip to content

Commit

Permalink
rmq
Browse files Browse the repository at this point in the history
  • Loading branch information
yutiansut committed Dec 4, 2019
1 parent 6145aac commit c6df072
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 301 deletions.
6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ license = "MIT"
mongodb = "0.3.11" # mongodb
amiquip = "0.3"
futures = "^0.1"
failure = "^0.1"
itertools = "^0.8.0"
lapin-futures = "^0.18"
log = "^0.4"
chrono = { version = "0.4", features = ["serde"] } # datetime
env_logger = "^0.7"
Expand All @@ -29,12 +26,9 @@ serde_derive = "1.0"
serde = { version = "1.0", features = ["derive"] } # 序列化
rayon = "1.1" # 多线程
ndarray = "0.13.0" # ndarray

actix-web = "2.0.0-alpha.1"

actix = "0.8.2"
actix-codec = "0.1.2"

actix-web-actors = "1.0.0"
actix-files = "0.1.1"
awc = "0.2.8"
Expand Down
126 changes: 0 additions & 126 deletions src/amiq.rs

This file was deleted.

28 changes: 11 additions & 17 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub mod qamongo;

pub mod qaeventmq;
pub mod amiq;

//pub mod qawebsockets;
// use tokio::net::TcpListener;
Expand Down Expand Up @@ -51,23 +51,18 @@ use chrono::prelude::*;
use ndarray::array;
// use ndarray::{ArrayD, ArrayViewD, ArrayViewMutD};

use amiq::Subscribe;
use qaeventmq::Subscribe;
use qaeventmq::Callback;
use crate::qaeventmq::QAEventMQ;

fn main() {

qamongo::query_account("192.168.2.24".to_string(), "288870".to_string());
//qaeventmq::connect_mq("192.168.2.24".to_string(), "test".to_string(), "test".to_string(), "thisisQUANTAXIS".to_string());
// let mq = qaeventmq::Eventmq{
// addr: "192.168.2.118:5672".to_string(),
// username: "admin".to_string(),
// password: "admin".to_string(),
// vhost: "/".to_string(),
// exchange: "realtime_1min_IF1912".to_string()
// };

// mq.subscriber_fanout();
//qaeventmq::subscriber();
// amiq::main();
let mut client = amiq::QAEventMQ{




let mut client = qaeventmq::QAEventMQ{
amqp: "amqp:https://admin:[email protected]:5672/".to_string(),
exchange: "tick".to_string(),
model: "direct".to_string(),
Expand All @@ -80,8 +75,7 @@ fn main() {
test_ndarray();
test_datetime();
test_timeseries();
// test_pyo3();
//rust_ext();

}


Expand Down
Loading

0 comments on commit c6df072

Please sign in to comment.