Skip to content

Commit

Permalink
use unordered_map for peers
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Jun 29, 2020
1 parent 61e9c31 commit df9965e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libi2pd/Transports.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <mutex>
#include <condition_variable>
#include <functional>
#include <map>
#include <unordered_map>
#include <vector>
#include <queue>
#include <string>
Expand Down Expand Up @@ -157,7 +157,7 @@ namespace transport
SSUServer * m_SSUServer;
NTCP2Server * m_NTCP2Server;
mutable std::mutex m_PeersMutex;
std::map<i2p::data::IdentHash, Peer> m_Peers;
std::unordered_map<i2p::data::IdentHash, Peer> m_Peers;

DHKeysPairSupplier m_DHKeysPairSupplier;

Expand Down

0 comments on commit df9965e

Please sign in to comment.