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
47fc09c1
Commit
47fc09c1
authored
Jun 02, 2017
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve logging in upstream_policy
parent
5f3e6cf6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libcaf_core/src/upstream_policy.cpp
libcaf_core/src/upstream_policy.cpp
+2
-1
No files found.
libcaf_core/src/upstream_policy.cpp
View file @
47fc09c1
...
@@ -81,12 +81,13 @@ expected<long> upstream_policy::add_path(strong_actor_ptr hdl,
...
@@ -81,12 +81,13 @@ expected<long> upstream_policy::add_path(strong_actor_ptr hdl,
<<
CAF_ARG
(
downstream_credit
));
<<
CAF_ARG
(
downstream_credit
));
CAF_ASSERT
(
hdl
!=
nullptr
);
CAF_ASSERT
(
hdl
!=
nullptr
);
if
(
!
find
(
hdl
))
{
if
(
!
find
(
hdl
))
{
CAF_LOG_DEBUG
(
"add new upstraem path"
<<
CAF_ARG
(
hdl
));
auto
ptr
=
new
upstream_path
(
std
::
move
(
hdl
),
sid
,
prio
);
auto
ptr
=
new
upstream_path
(
std
::
move
(
hdl
),
sid
,
prio
);
paths_
.
emplace_back
(
ptr
);
paths_
.
emplace_back
(
ptr
);
assignment_vec_
.
emplace_back
(
ptr
,
0
);
assignment_vec_
.
emplace_back
(
ptr
,
0
);
if
(
downstream_credit
>
0
)
if
(
downstream_credit
>
0
)
ptr
->
assigned_credit
=
std
::
min
(
max_credit_
,
downstream_credit
);
ptr
->
assigned_credit
=
std
::
min
(
max_credit_
,
downstream_credit
);
CAF_LOG_DEBUG
(
"add new upstraem path"
<<
ptr
->
hdl
<<
"with initial credit"
<<
ptr
->
assigned_credit
);
return
ptr
->
assigned_credit
;
return
ptr
->
assigned_credit
;
}
}
return
sec
::
upstream_already_exists
;
return
sec
::
upstream_already_exists
;
...
...
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