mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'xMAC94x/fix_non_metrics_compile' into 'master'
fix compiling without metrics See merge request veloren/veloren!1338
This commit is contained in:
commit
1aec2ac6ef
@ -319,11 +319,7 @@ impl Handshake {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn send_init(
|
async fn send_init(&self, c2w_frame_s: &mut mpsc::UnboundedSender<Frame>) {
|
||||||
&self,
|
|
||||||
c2w_frame_s: &mut mpsc::UnboundedSender<Frame>,
|
|
||||||
#[cfg(not(feature = "metrics"))] _pid_string: &str,
|
|
||||||
) {
|
|
||||||
#[cfg(feature = "metrics")]
|
#[cfg(feature = "metrics")]
|
||||||
self.metrics
|
self.metrics
|
||||||
.frames_out_total
|
.frames_out_total
|
||||||
|
@ -490,7 +490,10 @@ impl BParticipant {
|
|||||||
async move {
|
async move {
|
||||||
let (channel, b2w_frame_s, b2r_read_shutdown) = Channel::new(cid);
|
let (channel, b2w_frame_s, b2r_read_shutdown) = Channel::new(cid);
|
||||||
let mut lock = channels.write().await;
|
let mut lock = channels.write().await;
|
||||||
|
#[cfg(feature = "metrics")]
|
||||||
let mut channel_no = lock.len();
|
let mut channel_no = lock.len();
|
||||||
|
#[cfg(not(feature = "metrics"))]
|
||||||
|
let channel_no = lock.len();
|
||||||
lock.insert(
|
lock.insert(
|
||||||
cid,
|
cid,
|
||||||
Mutex::new(ChannelInfo {
|
Mutex::new(ChannelInfo {
|
||||||
|
Loading…
Reference in New Issue
Block a user