Skip to content

Commit e3d8503

Browse files
committed
Address reviewer comments
1 parent f6213f6 commit e3d8503

File tree

1 file changed

+3
-3
lines changed
  • fortanix-vme/fortanix-vme-runner/src

1 file changed

+3
-3
lines changed

fortanix-vme/fortanix-vme-runner/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use std::sync::{Arc, Mutex, RwLock};
1414
use fortanix_vme_abi::{self, Addr, Error as VmeError, Response, Request};
1515
use vsock::{self, SockAddr as VsockAddr, Std, Vsock, VsockListener, VsockStream};
1616

17-
const MAX_MESSAGE_LEN: usize = 80;
17+
const MAX_LOG_MESSAGE_LEN: usize = 80;
1818
const PROXY_BUFF_SIZE: usize = 4192;
1919

2020
enum Direction {
@@ -136,7 +136,7 @@ impl Connection {
136136
&str::from_utf8(&buff[0..n]).unwrap_or_default(),
137137
Direction::Left,
138138
S::protocol(),
139-
Some(MAX_MESSAGE_LEN));
139+
Some(MAX_LOG_MESSAGE_LEN));
140140
dst.write_all(&buff[0..n])?;
141141
ClientConnection::log_communication(
142142
log::Level::Debug,
@@ -147,7 +147,7 @@ impl Connection {
147147
&str::from_utf8(&buff[0..n]).unwrap_or_default(),
148148
Direction::Left,
149149
D::protocol(),
150-
Some(MAX_MESSAGE_LEN));
150+
Some(MAX_LOG_MESSAGE_LEN));
151151
}
152152
Ok(n)
153153
}

0 commit comments

Comments
 (0)