Merge branch 'typo' into 'main'

fix typos

See merge request veilid/veilid!216
This commit is contained in:
Christien Rioux 2023-10-07 14:16:53 +00:00
commit a6a3e6e77f
5 changed files with 6 additions and 6 deletions

View File

@ -443,7 +443,7 @@ Server Debug Commands:
let message = json_str_vec_u8(&msg["message"]); let message = json_str_vec_u8(&msg["message"]);
// check is message body is ascii printable // check if message body is ascii printable
let mut printable = true; let mut printable = true;
for c in &message { for c in &message {
if *c < 32 || *c > 126 { if *c < 32 || *c > 126 {
@ -481,7 +481,7 @@ Server Debug Commands:
let message = json_str_vec_u8(&call["message"]); let message = json_str_vec_u8(&call["message"]);
// check is message body is ascii printable // check if message body is ascii printable
let mut printable = true; let mut printable = true;
for c in &message { for c in &message {
if *c < 32 || *c > 126 { if *c < 32 || *c > 126 {

View File

@ -193,7 +193,7 @@ impl Network {
// Run accept handlers on accepted stream // Run accept handlers on accepted stream
// Check is this could be TLS // Check if this could be TLS
let ls = listener_state.read().clone(); let ls = listener_state.read().clone();
let conn = if ls.tls_acceptor.is_some() && first_packet[0] == 0x16 { let conn = if ls.tls_acceptor.is_some() && first_packet[0] == 0x16 {

View File

@ -516,7 +516,7 @@ async fn async_get_debug_argument_at<T, G: FnOnce(&str) -> SendPinBoxFuture<Opti
} }
pub fn print_data(data: &[u8], truncate_len: Option<usize>) -> String { pub fn print_data(data: &[u8], truncate_len: Option<usize>) -> String {
// check is message body is ascii printable // check if message body is ascii printable
let mut printable = true; let mut printable = true;
for c in data { for c in data {
if *c < 32 || *c > 126 { if *c < 32 || *c > 126 {

View File

@ -40,7 +40,7 @@ impl DHTSchemaDFLT {
) -> bool { ) -> bool {
let subkey = subkey as usize; let subkey = subkey as usize;
// Check is subkey is in owner range // Check if subkey is in owner range
if subkey < (self.o_cnt as usize) { if subkey < (self.o_cnt as usize) {
// Check value data has valid writer // Check value data has valid writer
if value_data.writer() == owner { if value_data.writer() == owner {

View File

@ -65,7 +65,7 @@ impl DHTSchemaSMPL {
) -> bool { ) -> bool {
let mut cur_subkey = subkey as usize; let mut cur_subkey = subkey as usize;
// Check is subkey is in owner range // Check if subkey is in owner range
if cur_subkey < (self.o_cnt as usize) { if cur_subkey < (self.o_cnt as usize) {
// Check value data has valid writer // Check value data has valid writer
if value_data.writer() == owner { if value_data.writer() == owner {