Add client/server fromEnv() without temporary Config on caller stack
This commit is contained in:
1 parent
d6bf565ed6
commit
98edf61de8
18 files changed
+40
-22
No files matched your search
@@ -34,8 +34,7 @@ int main(int argc, char* argv[])
|
||||
logger_config_env();
|
||||
|
||||
// Create a client context
|
||||
client::Context ctxt(client::Config::fromEnv()
|
||||
.build());
|
||||
auto ctxt(client::Context::fromEnv());
|
||||
|
||||
auto reply(ctxt.rpc(argv[1])
|
||||
.arg("lhs", argv[2])
|
||||
|
||||
Reference in new issue
Block a user