Browse Source

Fix typos

pull/1909/head
Dimitris Apostolou 2 years ago committed by R4SAS
parent
commit
d91d734b5c
  1. 4
      libi2pd/KadDHT.cpp
  2. 2
      libi2pd/SSU2Session.cpp
  3. 6
      libi2pd/Tunnel.cpp

4
libi2pd/KadDHT.cpp

@ -81,13 +81,13 @@ namespace data @@ -81,13 +81,13 @@ namespace data
{
if (bit1)
{
if (root->one) return; // someting wrong
if (root->one) return; // something wrong
root->one = new DHTNode;
root = root->one;
}
else
{
if (root->zero) return; // someting wrong
if (root->zero) return; // something wrong
root->zero = new DHTNode;
root = root->zero;
}

2
libi2pd/SSU2Session.cpp

@ -920,7 +920,7 @@ namespace transport @@ -920,7 +920,7 @@ namespace transport
// TODO: queue up
return true;
}
// packet num must be aways zero
// packet num must be always zero
if (header.h.packetNum)
{
LogPrint (eLogError, "SSU2: Non zero packet number in SessionConfirmed");

6
libi2pd/Tunnel.cpp

@ -332,7 +332,7 @@ namespace tunnel @@ -332,7 +332,7 @@ namespace tunnel
Tunnels tunnels;
Tunnels::Tunnels (): m_IsRunning (false), m_Thread (nullptr), m_MaxNumTransitTunnels (DEFAULT_MAX_NUM_TRANSIT_TUNNELS),
m_TotalNumSuccesiveTunnelCreations (0), m_TotalNumFailedTunnelCreations (0), // for normal avarage
m_TotalNumSuccesiveTunnelCreations (0), m_TotalNumFailedTunnelCreations (0), // for normal average
m_TunnelCreationSuccessRate (TCSR_START_VALUE), m_TunnelCreationAttemptsNum(0)
{
}
@ -544,7 +544,7 @@ namespace tunnel @@ -544,7 +544,7 @@ namespace tunnel
ManageTunnels (ts);
lastTs = ts;
}
if (ts - lastPoolsTs >= TUNNEL_POOLS_MANAGE_INTERVAL || // manage pools every 5 secondsts
if (ts - lastPoolsTs >= TUNNEL_POOLS_MANAGE_INTERVAL || // manage pools every 5 seconds
ts + TUNNEL_POOLS_MANAGE_INTERVAL < lastPoolsTs)
{
ManageTunnelPools (ts);
@ -698,7 +698,7 @@ namespace tunnel @@ -698,7 +698,7 @@ namespace tunnel
if (m_OutboundTunnels.size () < 3)
{
// trying to create one more oubound tunnel
// trying to create one more outbound tunnel
auto inboundTunnel = GetNextInboundTunnel ();
auto router = i2p::transport::transports.RoutesRestricted() ?
i2p::transport::transports.GetRestrictedPeer() :

Loading…
Cancel
Save