Add client/server fromEnv() without temporary Config on caller stack

This commit is contained in:
Michael Davidsaver
2021-08-05 09:57:00 -07:00
parent d6bf565ed6
commit 98edf61de8
18 changed files with 40 additions and 22 deletions
+5
View File
@@ -353,6 +353,11 @@ Operation::~Operation() {}
Subscription::~Subscription() {}
Context Context::fromEnv()
{
return Config::fromEnv().build();
}
Context::Context(const Config& conf)
:pvt(std::make_shared<Pvt>(conf))
{