Skip to content

Commit 1ea9c63

Browse files
Jingyi Yangfacebook-github-bot
authored andcommitted
add egress integration, decision publication -> ribout
Summary: as title Differential Revision: D15246174 fbshipit-source-id: 6d0467024e55edd05a77aebf435491e9154a0dc3
1 parent 3b8ac3e commit 1ea9c63

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

openr/Main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace {
6565
//
6666

6767
// the URL for Decision module
68-
const DecisionPubUrl kDecisionPubUrl{"inproc://decision_server_pub"};
68+
const DecisionPubUrl kDecisionPubUrl{"ipc:///tmp/decision-pub-url"};
6969

7070
// the URL Prefix for the ConfigStore module
7171
const PersistentStoreUrl kConfigStoreUrl{"ipc:///tmp/openr_config_store_cmd"};
@@ -827,7 +827,8 @@ main(int argc, char** argv) {
827827

828828
// Call external module for platform specific implementations
829829
if (FLAGS_enable_plugin) {
830-
pluginStart(PluginArgs{context, prefixManagerLocalCmdUrl});
830+
pluginStart(PluginArgs{
831+
FLAGS_node_name, context, prefixManagerLocalCmdUrl, kDecisionPubUrl});
831832
}
832833

833834
// Wait for main-event loop to return

openr/plugin/Plugin.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
#pragma once
99

1010
#include <fbzmq/zmq/Zmq.h>
11-
#include "openr/common/Types.h"
11+
#include <openr/common/Types.h>
1212

1313
namespace openr {
1414
struct PluginArgs {
15+
std::string myNodeName;
1516
fbzmq::Context& zmqContext;
1617
PrefixManagerLocalCmdUrl prefixManagerUrl;
18+
DecisionPubUrl decisionPubUrl;
1719
};
1820

1921
void pluginStart(const PluginArgs& pluginArgs);

0 commit comments

Comments
 (0)