-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[Core] Rename ClientFactoryFn to CoreWorkerClientFactoryFn #48576
Conversation
Signed-off-by: Jiajun Yao <[email protected]>
This reverts commit ab11d33.
Signed-off-by: Jiajun Yao <[email protected]>
|
||
absl::Mutex mu_; | ||
|
||
struct CoreWorkerClientEntry { | ||
public: | ||
CoreWorkerClientEntry() {} | ||
CoreWorkerClientEntry(ray::WorkerID worker_id, | ||
shared_ptr<CoreWorkerClientInterface> core_worker_client) | ||
std::shared_ptr<CoreWorkerClientInterface> core_worker_client) |
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.
Can be moved?
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.
Will fix in my next PR
@@ -35,13 +32,13 @@ class CoreWorkerClientPool { | |||
: client_factory_(defaultClientFactory(ccm)){}; | |||
|
|||
/// Creates a CoreWorkerClientPool by a given connection function. | |||
CoreWorkerClientPool(ClientFactoryFn client_factory) | |||
CoreWorkerClientPool(CoreWorkerClientFactoryFn client_factory) |
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.
explicit
and move semantics
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.
Will fix in my next PR
@@ -20,9 +20,6 @@ | |||
#include "ray/common/id.h" | |||
#include "ray/rpc/worker/core_worker_client.h" | |||
|
|||
using absl::optional; |
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.
Oh my....
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.
Only two comments on C++
…ct#48576) Signed-off-by: Jiajun Yao <[email protected]>
…ct#48576) Signed-off-by: Jiajun Yao <[email protected]> Signed-off-by: mohitjain2504 <[email protected]>
Why are these changes needed?
Make it clear that it's about core worker client, not raylet client or gcs client.
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.