fix typos
This commit is contained in:
@@ -193,7 +193,7 @@ impl Network {
|
||||
|
||||
// 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 conn = if ls.tls_acceptor.is_some() && first_packet[0] == 0x16 {
|
||||
|
@@ -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 {
|
||||
// check is message body is ascii printable
|
||||
// check if message body is ascii printable
|
||||
let mut printable = true;
|
||||
for c in data {
|
||||
if *c < 32 || *c > 126 {
|
||||
|
@@ -40,7 +40,7 @@ impl DHTSchemaDFLT {
|
||||
) -> bool {
|
||||
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) {
|
||||
// Check value data has valid writer
|
||||
if value_data.writer() == owner {
|
||||
|
@@ -65,7 +65,7 @@ impl DHTSchemaSMPL {
|
||||
) -> bool {
|
||||
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) {
|
||||
// Check value data has valid writer
|
||||
if value_data.writer() == owner {
|
||||
|
Reference in New Issue
Block a user