Skip to content

Commit

Permalink
Win32 compatibility for get_peer_stats (#6743)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur committed Mar 28, 2024
1 parent 2ff3ae0 commit 465b878
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libtransmission/peer-mgr.cc
Expand Up @@ -1828,8 +1828,6 @@ namespace peer_stat_helpers

tr_peer_stat* tr_peerMgrPeerStats(tr_torrent const* tor, size_t* setme_count)
{
using namespace peer_stat_helpers;

TR_ASSERT(tr_isTorrent(tor));
TR_ASSERT(tor->swarm->manager != nullptr);

Expand All @@ -1849,7 +1847,7 @@ tr_peer_stat* tr_peerMgrPeerStats(tr_torrent const* tor, size_t* setme_count)
std::begin(peers),
std::end(peers),
ret,
[&now, &now_msec](auto const* peer) { return get_peer_stats(peer, now, now_msec); });
[&now, &now_msec](auto const* peer) { return peer_stat_helpers::get_peer_stats(peer, now, now_msec); });
done_promise.set_value();
});
done_future.wait();
Expand Down

0 comments on commit 465b878

Please sign in to comment.