Skip to content

Commit

Permalink
boost: remove useless threadGroup parameter from Discover
Browse files Browse the repository at this point in the history
  • Loading branch information
theuni committed Feb 8, 2018
1 parent f26866b commit ba91724
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1667,7 +1667,7 @@ bool AppInitMain()
if (gArgs.GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION))
StartTorControl(threadGroup, scheduler);

Discover(threadGroup);
Discover();

// Map ports with UPnP
if (gArgs.GetBoolArg("-upnp", DEFAULT_UPNP)) {
Expand Down
2 changes: 1 addition & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2129,7 +2129,7 @@ bool CConnman::BindListenPort(const CService &addrBind, std::string& strError, b
return true;
}

void Discover(boost::thread_group& threadGroup)
void Discover()
{
if (!fDiscover)
return;
Expand Down
6 changes: 1 addition & 5 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
class CScheduler;
class CNode;

namespace boost {
class thread_group;
} // namespace boost

/** Time between pings automatically sent out for latency probing and keepalive (in seconds). */
static const int PING_INTERVAL = 2 * 60;
/** Time after which to disconnect, after waiting for a ping response (or inactivity). */
Expand Down Expand Up @@ -441,7 +437,7 @@ class CConnman
friend struct CConnmanTest;
};
extern std::unique_ptr<CConnman> g_connman;
void Discover(boost::thread_group& threadGroup);
void Discover();
void StartMapPort();
void InterruptMapPort();
void StopMapPort();
Expand Down

0 comments on commit ba91724

Please sign in to comment.