Skip to content

Commit

Permalink
feat(streamer): implementing protobuf for NotifBrokerActor
Browse files Browse the repository at this point in the history
  • Loading branch information
wildonion committed Sep 20, 2024
1 parent 6771c45 commit 8a31e16
Show file tree
Hide file tree
Showing 17 changed files with 289 additions and 2,533 deletions.
710 changes: 218 additions & 492 deletions Cargo.lock

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ members = [
[dependencies]
migration = { path = "migration", name = "migration" }
crypter = { path = "crypter", name = "crypter" }
capnp-rpc = "0.19.4"
salvo = { version = "0.71.1", features = ["full"] }
actix = "0.13.5"
actix-web = "4"
Expand All @@ -30,7 +29,6 @@ is_type = "0.2.1"
rayon = "1.10.0"
rand = "0.8"
rslock = "0.4.0"
tonic = "0.12"
futures = "0.3"
deadpool-lapin = { version = "0.12.1", features = ["serde", "rt_tokio_1"] }
deadpool-redis = "0.16.0"
Expand Down Expand Up @@ -68,11 +66,6 @@ rand_chacha = "0.3"
chacha20 = "0.9"
indexmap = "2.4"


[[bin]]
name = "playground"
path = "playground/main.rs"

[[bin]]
path = "src/app.rs"
name = "hoopoe"
Expand All @@ -84,11 +77,5 @@ lto = true
codegen-units = 1
overflow-checks = true # panic on any overflow

[build-dependencies]
tonic-build = "0.10.2"

[dependencies.capnp]
version = "0.19.0"

[profile.dev.package.sqlx-macros]
opt-level = 3
8 changes: 4 additions & 4 deletions docs/Rmq.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

channel
.basic_publish(
"",
request_queue,
"", // "" means direct exchange
request_queue, // in direct exchange routing key is the same as the queue name
BasicPublishOptions::default(),
request_payload.to_vec(),
BasicProperties::default()
Expand Down Expand Up @@ -207,8 +207,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let response_payload = b"Response Payload";
channel
.basic_publish(
"",
reply_to.as_str(),
"", // "" means direct exchange
reply_to.as_str(), // in direct exchange routing key is the same as the queue name
BasicPublishOptions::default(),
response_payload.to_vec(),
BasicProperties::default()
Expand Down
305 changes: 0 additions & 305 deletions playground/main.rs

This file was deleted.

Empty file added proto/notif.proto
Empty file.
Binary file modified src/.DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ use indexmap::IndexMap;
use models::event::NotifData;
use salvo::http::response;
use serde_json::Value;
use tests::{actor, orex};
use workers::notif::{self, NotifBrokerActor};
use std::io::BufWriter;
use std::str::FromStr;
Expand Down
1 change: 0 additions & 1 deletion src/middlewares/check_token.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@



use capnp::data;
use context::AppContext;
use interfaces::passport::Passport;
use models::user::UserData;
Expand Down
3 changes: 2 additions & 1 deletion src/storage.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@



pub mod engine;
pub mod engine;
pub mod cruft;
Loading

0 comments on commit 8a31e16

Please sign in to comment.