Commit 24fc1d74 authored by David Auer's avatar David Auer
Browse files

Add comment on RPC client

parent 7450d163
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -188,6 +188,12 @@ init_rpc_server() {

void
init_rpc_client() {
    // Tests show that a margo instance initalized with MARGO_SERVER_MODE can
    // also be used in client mode. The documentation is unclear whether that is
    // intended behavior and what should be preferred. Since the current
    // approach with a separate Margo client works, I'll leave it like this for
    // now, but using only one Margo instance may be considered if problems
    // should arise.
    auto mid = margo_init(GKFS_DATA->bind_addr().c_str(), MARGO_CLIENT_MODE,
                          HG_TRUE, 0);
    if(mid == MARGO_INSTANCE_NULL) {