Skip to content

Commit

Permalink
fix formating
Browse files Browse the repository at this point in the history
  • Loading branch information
alk888 committed Feb 14, 2024
1 parent 7d0139e commit fcbdf56
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/client/dispatcher.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use futures::Stream;
use rabbitmq_stream_protocol::Response;
use std::sync::{atomic::{AtomicBool, AtomicU32, Ordering}, Arc};
use std::sync::{
atomic::{AtomicBool, AtomicU32, Ordering},
Arc,
};
use tracing::trace;

use dashmap::DashMap;
Expand Down Expand Up @@ -34,14 +37,14 @@ impl<T> Clone for DispatcherState<T> {

struct RequestsMap {
requests: DashMap<u32, Sender<Response>>,
closed: AtomicBool
closed: AtomicBool,
}

impl RequestsMap {
fn new() -> RequestsMap {
RequestsMap {
requests: DashMap::new(),
closed: AtomicBool::new(false)
closed: AtomicBool::new(false),
}
}

Expand Down

0 comments on commit fcbdf56

Please sign in to comment.