Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
a2256659
Commit
a2256659
authored
Mar 29, 2022
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
proxy client: fix building Listener map
parent
f9b22855
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dht_proxy_client.cpp
+2
-3
2 additions, 3 deletions
src/dht_proxy_client.cpp
src/op_cache.h
+1
-1
1 addition, 1 deletion
src/op_cache.h
with
3 additions
and
4 deletions
src/dht_proxy_client.cpp
+
2
−
3
View file @
a2256659
...
@@ -40,9 +40,8 @@ struct DhtProxyClient::OperationState {
...
@@ -40,9 +40,8 @@ struct DhtProxyClient::OperationState {
struct
DhtProxyClient
::
Listener
struct
DhtProxyClient
::
Listener
{
{
explicit
Listener
(
OpValueCache
&&
c
)
:
Listener
(
OpValueCache
&&
c
)
:
cache
(
std
::
move
(
c
))
cache
(
std
::
move
(
c
))
{}
{}
OpValueCache
cache
;
OpValueCache
cache
;
CacheValueCallback
cb
;
CacheValueCallback
cb
;
...
...
This diff is collapsed.
Click to expand it.
src/op_cache.h
+
1
−
1
View file @
a2256659
...
@@ -33,7 +33,7 @@ struct OpCacheValueStorage
...
@@ -33,7 +33,7 @@ struct OpCacheValueStorage
class
OpValueCache
{
class
OpValueCache
{
public:
public:
explicit
OpValueCache
(
ValueCallback
&&
cb
)
noexcept
:
callback
(
std
::
forward
<
ValueCallback
>
(
cb
))
{}
OpValueCache
(
ValueCallback
&&
cb
)
noexcept
:
callback
(
std
::
forward
<
ValueCallback
>
(
cb
))
{}
explicit
OpValueCache
(
OpValueCache
&&
o
)
noexcept
:
values
(
std
::
move
(
o
.
values
)),
callback
(
std
::
move
(
o
.
callback
))
{
explicit
OpValueCache
(
OpValueCache
&&
o
)
noexcept
:
values
(
std
::
move
(
o
.
values
)),
callback
(
std
::
move
(
o
.
callback
))
{
o
.
callback
=
{};
o
.
callback
=
{};
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment