Compare commits

..

No commits in common. "844f6214f89499f6d3aa2d1a4e194c0c93146b16" and "29808f5efe022a22606f5f86a231403e27a15834" have entirely different histories.

3 changed files with 7 additions and 7 deletions

View file

@ -18,11 +18,11 @@ use crate::ResultHeader;
/// With this client you can send messages to a queue that other microservices /// With this client you can send messages to a queue that other microservices
/// will process /// will process
#[derive(Debug)] #[derive(Debug)]
pub struct BunBunClient { pub struct AMQPClient {
conn: Connection, conn: Connection,
} }
impl BunBunClient { impl AMQPClient {
/// Creates an rpc client /// Creates an rpc client
/// ///
/// # Examples /// # Examples

View file

@ -16,10 +16,10 @@ use std::{
sync::Arc, sync::Arc,
}; };
use tokio::sync::Mutex; use tokio::sync::Mutex;
pub mod client; mod client;
mod test; mod test;
pub struct BunBunWorker { struct BunBunWorker {
channel: Channel, channel: Channel,
consumers: Vec<Consumer>, consumers: Vec<Consumer>,
handlers: Vec< handlers: Vec<

View file

@ -10,7 +10,7 @@ mod test {
use tracing_test::traced_test; use tracing_test::traced_test;
use crate::{ use crate::{
client::{BunBunClient, RPCClientTask}, client::{AMQPClient, RPCClientTask},
BunBunWorker, RPCServerTask, BunBunWorker, RPCServerTask,
}; };
@ -117,7 +117,7 @@ mod test {
#[traced_test] #[traced_test]
async fn rpc_client() { async fn rpc_client() {
// //
let mut client = BunBunClient::new(env::var("AMQP_SERVER_URL").unwrap().as_str()) let mut client = AMQPClient::new(env::var("AMQP_SERVER_URL").unwrap().as_str())
.await .await
.unwrap(); .unwrap();
let result = client let result = client
@ -142,7 +142,7 @@ mod test {
#[traced_test] #[traced_test]
async fn rpc_client_spam_multithread() { async fn rpc_client_spam_multithread() {
// //
let mut client = BunBunClient::new(env::var("AMQP_SERVER_URL").unwrap().as_str()) let mut client = AMQPClient::new(env::var("AMQP_SERVER_URL").unwrap().as_str())
.await .await
.unwrap(); .unwrap();
let client = Arc::new(Mutex::new(client)); let client = Arc::new(Mutex::new(client));