We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c52886 commit ae55b4bCopy full SHA for ae55b4b
puffin_http/src/server.rs
@@ -62,7 +62,7 @@ impl Server {
62
rx: flume::Receiver<Arc<puffin::FrameData>>,
63
num_clients: Arc<AtomicUsize>,
64
) -> anyhow::Result<()> {
65
- let executor = Arc::new(LocalExecutor::new());
+ let executor = Rc::new(LocalExecutor::new());
66
67
let clients = Rc::new(RefCell::new(Vec::new()));
68
let clients_cloned = clients.clone();
@@ -150,7 +150,7 @@ impl Drop for Client {
150
151
/// Listens for incoming connections
152
struct PuffinServerConnection<'a> {
153
- executor: Arc<LocalExecutor<'a>>,
+ executor: Rc<LocalExecutor<'a>>,
154
tcp_listener: TcpListener,
155
clients: Rc<RefCell<Vec<Client>>>,
156
0 commit comments