Switch to parking_lot RwLock & Mutex. Use trace! for protocol instead of debug! (#42)

* RwLock & parking_lot::Mutex

* upgrade to trace
This commit is contained in:
Lev Kokotov
2022-02-24 08:44:41 -08:00
committed by GitHub
parent b3c8ca4b8a
commit 5972b6fa52
7 changed files with 48 additions and 41 deletions

View File

@@ -36,6 +36,7 @@ extern crate tokio;
extern crate toml;
use log::{error, info};
use parking_lot::Mutex;
use tokio::net::TcpListener;
use tokio::{
signal,
@@ -44,7 +45,7 @@ use tokio::{
};
use std::collections::HashMap;
use std::sync::{Arc, Mutex};
use std::sync::Arc;
mod client;
mod config;