Skip to content

Commit ba91724

Browse files
committed
boost: remove useless threadGroup parameter from Discover
1 parent f26866b commit ba91724

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ bool AppInitMain()
16671667
if (gArgs.GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION))
16681668
StartTorControl(threadGroup, scheduler);
16691669

1670-
Discover(threadGroup);
1670+
Discover();
16711671

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

src/net.cpp

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

2132-
void Discover(boost::thread_group& threadGroup)
2132+
void Discover()
21332133
{
21342134
if (!fDiscover)
21352135
return;

src/net.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@
3737
class CScheduler;
3838
class CNode;
3939

40-
namespace boost {
41-
class thread_group;
42-
} // namespace boost
43-
4440
/** Time between pings automatically sent out for latency probing and keepalive (in seconds). */
4541
static const int PING_INTERVAL = 2 * 60;
4642
/** Time after which to disconnect, after waiting for a ping response (or inactivity). */
@@ -441,7 +437,7 @@ class CConnman
441437
friend struct CConnmanTest;
442438
};
443439
extern std::unique_ptr<CConnman> g_connman;
444-
void Discover(boost::thread_group& threadGroup);
440+
void Discover();
445441
void StartMapPort();
446442
void InterruptMapPort();
447443
void StopMapPort();

0 commit comments

Comments
 (0)