summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-11-30 11:39:32 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-12-01 13:45:48 +0000
commita7a0764e7e785f12ed40cd45d420e1b81991d402 (patch)
tree34d1caf0842f7be3620b8d49e1f48f21adc67db7 /storage
parentef1c43d5433e4cf5ae7dd581f1c72c46e5611118 (diff)
provide the config in the constructor only.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/storageserver/rpc/shared_rpc_resources.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/storage/src/vespa/storage/storageserver/rpc/shared_rpc_resources.cpp b/storage/src/vespa/storage/storageserver/rpc/shared_rpc_resources.cpp
index 2709ae9d7d7..1b629f86f31 100644
--- a/storage/src/vespa/storage/storageserver/rpc/shared_rpc_resources.cpp
+++ b/storage/src/vespa/storage/storageserver/rpc/shared_rpc_resources.cpp
@@ -64,7 +64,7 @@ SharedRpcResources::SharedRpcResources(const config::ConfigUri& config_uri,
int rpc_server_port,
size_t rpc_thread_pool_size)
: _thread_pool(std::make_unique<FastOS_ThreadPool>(1024*60)),
- _transport(std::make_unique<FNET_Transport>(rpc_thread_pool_size)),
+ _transport(std::make_unique<FNET_Transport>(TransportConfig(rpc_thread_pool_size).config(FNET_Config().events_before_wakeup(1)))),
_orb(std::make_unique<FRT_Supervisor>(_transport.get())),
_slobrok_register(std::make_unique<slobrok::api::RegisterAPI>(*_orb, slobrok::ConfiguratorFactory(config_uri))),
_slobrok_mirror(std::make_unique<slobrok::api::MirrorAPI>(*_orb, slobrok::ConfiguratorFactory(config_uri))),
@@ -72,9 +72,7 @@ SharedRpcResources::SharedRpcResources(const config::ConfigUri& config_uri,
_hostname(vespalib::HostName::get()),
_rpc_server_port(rpc_server_port),
_shutdown(false)
-{
- _transport->events_before_wakeup(1);
-}
+{ }
// TODO make sure init/shutdown is safe for aborted init in comm. mgr.