mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
rename and refactor
This commit is contained in:
parent
22b1066b0a
commit
7df2ed6114
4 changed files with 16 additions and 15 deletions
|
@ -333,7 +333,7 @@ namespace tunnel
|
|||
|
||||
Tunnels::Tunnels (): m_IsRunning (false), m_Thread (nullptr),
|
||||
m_TunnelCreationSuccessRate (TCSR_START_VALUE), m_TunnelCreationAttemptsNum(0),
|
||||
m_OldNumSuccesiveTunnelCreations (0), m_OldNumFailedTunnelCreations (0) {
|
||||
m_TotalNumSuccesiveTunnelCreations (0), m_TotalNumFailedTunnelCreations (0) { // for normal avarage
|
||||
}
|
||||
|
||||
Tunnels::~Tunnels ()
|
||||
|
@ -635,7 +635,6 @@ namespace tunnel
|
|||
// delete
|
||||
it = pendingTunnels.erase (it);
|
||||
FailedTunnelCreation();
|
||||
m_OldNumFailedTunnelCreations++;
|
||||
}
|
||||
else
|
||||
++it;
|
||||
|
@ -644,7 +643,6 @@ namespace tunnel
|
|||
LogPrint (eLogDebug, "Tunnel: Pending build request ", it->first, " failed, deleted");
|
||||
it = pendingTunnels.erase (it);
|
||||
FailedTunnelCreation();
|
||||
m_OldNumFailedTunnelCreations++;
|
||||
break;
|
||||
case eTunnelStateBuildReplyReceived:
|
||||
// intermediate state, will be either established of build failed
|
||||
|
@ -654,7 +652,6 @@ namespace tunnel
|
|||
// success
|
||||
it = pendingTunnels.erase (it);
|
||||
SuccesiveTunnelCreation();
|
||||
m_OldNumSuccesiveTunnelCreations++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue