Add client/server fromEnv() without temporary Config on caller stack
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user