mirror of
https://github.com/wassname/ray.git
synced 2026-07-18 12:40:56 +08:00
support dynamic library loading in C++ worker (#13734)
This commit is contained in:
@@ -34,6 +34,13 @@ class RayConfig {
|
||||
|
||||
static std::shared_ptr<RayConfig> GetInstance();
|
||||
|
||||
void SetRedisAddress(const std::string address) {
|
||||
auto pos = address.find(':');
|
||||
RAY_CHECK(pos != std::string::npos);
|
||||
redis_ip = address.substr(0, pos);
|
||||
redis_port = std::stoi(address.substr(pos + 1, address.length()));
|
||||
}
|
||||
|
||||
private:
|
||||
static std::shared_ptr<RayConfig> config_;
|
||||
};
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
namespace ray {
|
||||
namespace api {
|
||||
|
||||
int default_worker_main(int argc, char **argv);
|
||||
|
||||
} // namespace api
|
||||
} // namespace ray
|
||||
Reference in New Issue
Block a user