refactor: use `small::map`

This commit is contained in:
Yat Ho 2024-03-16 20:39:02 +08:00
parent 1f83cd4972
commit dccb10dc6b
1 changed files with 1 additions and 3 deletions

View File

@ -284,9 +284,7 @@ class tr_swarm
{
public:
using Peers = std::vector<tr_peerMsgs*>;
// FIXME(tearfur) replace std::vector with small::vector after their bugs are fixed
using Pool = small::detail::
associative_vector<true, false, true, std::vector<std::pair<tr_socket_address, std::shared_ptr<tr_peer_info>>>>;
using Pool = small::map<tr_socket_address, std::shared_ptr<tr_peer_info>>;
class WishlistMediator final : public Wishlist::Mediator
{