-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rpc] AsyncRPCOperation: std::move instead of assignment #33
base: master
Are you sure you want to change the base?
[rpc] AsyncRPCOperation: std::move instead of assignment #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Can consider upstreaming to zcash part of this commit
src/asyncrpcoperation.cpp
Outdated
// Set a unique reference for each operation | ||
boost::uuids::uuid uuid = uuidgen(); | ||
id_ = "opid-" + boost::uuids::to_string(uuid); | ||
creation_time_ = (int64_t)time(NULL); | ||
|
||
set_state(OperationStatus::READY); | ||
} | ||
|
||
AsyncRPCOperation::AsyncRPCOperation(const AsyncRPCOperation& o) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should consider getting rid of this copy constructor too for same reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
cba6ca1
to
0a6f2f1
Compare
0a6f2f1
to
d1a02b0
Compare
No description provided.