Skip to content

Commit ab674a0

Browse files
committed
Remove useless threadGroup parameter from Discover
1 parent 2e82dbd commit ab674a0

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ bool AppInit2()
18691869
if (gArgs.GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION))
18701870
StartTorControl();
18711871

1872-
Discover(threadGroup);
1872+
Discover();
18731873

18741874
// Map ports with UPnP
18751875
if (gArgs.GetBoolArg("-upnp", DEFAULT_UPNP)) {

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,7 @@ bool CConnman::BindListenPort(const CService& addrBind, std::string& strError, b
20142014
return true;
20152015
}
20162016

2017-
void Discover(boost::thread_group& threadGroup)
2017+
void Discover()
20182018
{
20192019
if (!fDiscover)
20202020
return;

src/net.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ class CBlockIndex;
4141
class CScheduler;
4242
class CNode;
4343

44-
namespace boost
45-
{
46-
class thread_group;
47-
} // namespace boost
48-
4944
/** Time between pings automatically sent out for latency probing and keepalive (in seconds). */
5045
static const int PING_INTERVAL = 2 * 60;
5146
/** Time after which to disconnect, after waiting for a ping response (or inactivity). */
@@ -391,7 +386,7 @@ class CConnman
391386
std::thread threadMessageHandler;
392387
};
393388
extern std::unique_ptr<CConnman> g_connman;
394-
void Discover(boost::thread_group& threadGroup);
389+
void Discover();
395390
void StartMapPort();
396391
void InterruptMapPort();
397392
void StopMapPort();

0 commit comments

Comments
 (0)