Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
c013db4d
Commit
c013db4d
authored
Jun 19, 2023
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused CLI options from caf_net
parent
51a5943f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
libcaf_net/src/net/middleman.cpp
libcaf_net/src/net/middleman.cpp
+3
-20
No files found.
libcaf_net/src/net/middleman.cpp
View file @
c013db4d
...
@@ -98,17 +98,11 @@ void middleman::stop() {
...
@@ -98,17 +98,11 @@ void middleman::stop() {
mpx_
->
run
();
mpx_
->
run
();
}
}
void
middleman
::
init
(
actor_system_config
&
cfg
)
{
void
middleman
::
init
(
actor_system_config
&
)
{
if
(
auto
err
=
mpx_
->
init
())
{
if
(
auto
err
=
mpx_
->
init
())
{
CAF_LOG_ERROR
(
"mpx_->init() failed: "
<<
err
);
CAF_LOG_ERROR
(
"mpx_->init() failed: "
<<
err
);
CAF_RAISE_ERROR
(
"mpx_->init() failed"
);
CAF_RAISE_ERROR
(
"mpx_->init() failed"
);
}
}
if
(
auto
node_uri
=
get_if
<
uri
>
(
&
cfg
,
"caf.middleman.this-node"
))
{
auto
this_node
=
make_node_id
(
std
::
move
(
*
node_uri
));
sys_
.
node_
.
swap
(
this_node
);
}
else
{
// CAF_RAISE_ERROR("no valid entry for caf.middleman.this-node found");
}
}
}
middleman
::
module
::
id_t
middleman
::
id
()
const
{
middleman
::
module
::
id_t
middleman
::
id
()
const
{
...
@@ -124,20 +118,9 @@ actor_system::module* middleman::make(actor_system& sys, detail::type_list<>) {
...
@@ -124,20 +118,9 @@ actor_system::module* middleman::make(actor_system& sys, detail::type_list<>) {
}
}
void
middleman
::
add_module_options
(
actor_system_config
&
cfg
)
{
void
middleman
::
add_module_options
(
actor_system_config
&
cfg
)
{
config_option_adder
{
cfg
.
custom_options
(),
"caf.middleman"
}
config_option_adder
{
cfg
.
custom_options
(),
"caf.middleman"
}
//
.
add
<
std
::
vector
<
std
::
string
>>
(
"app-identifiers"
,
"valid application identifiers of this node"
)
.
add
<
uri
>
(
"this-node"
,
"locator of this CAF node"
)
.
add
<
size_t
>
(
"max-consecutive-reads"
,
"max. number of consecutive reads per broker"
)
.
add
<
bool
>
(
"manual-multiplexing"
,
.
add
<
bool
>
(
"manual-multiplexing"
,
"disables background activity of the multiplexer"
)
"disables background activity of the multiplexer"
);
.
add
<
size_t
>
(
"workers"
,
"number of deserialization workers"
)
.
add
<
timespan
>
(
"heartbeat-interval"
,
"interval of heartbeat messages"
)
.
add
<
timespan
>
(
"connection-timeout"
,
"max. time between messages before declaring a node dead "
"(disabled if 0, ignored if heartbeats are disabled)"
)
.
add
<
std
::
string
>
(
"network-backend"
,
"legacy option"
);
config_option_adder
{
cfg
.
custom_options
(),
"caf.middleman.prometheus-http"
}
config_option_adder
{
cfg
.
custom_options
(),
"caf.middleman.prometheus-http"
}
.
add
<
uint16_t
>
(
"port"
,
"listening port for incoming scrapes"
)
.
add
<
uint16_t
>
(
"port"
,
"listening port for incoming scrapes"
)
.
add
<
std
::
string
>
(
"address"
,
"bind address for the HTTP server socket"
);
.
add
<
std
::
string
>
(
"address"
,
"bind address for the HTTP server socket"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment