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
+1 -2
View File
@@ -73,8 +73,7 @@ int main(int argc, char* argv[])
// Build server which will serve this PV
// Configure using process environment.
server::Server serv = server::Config::fromEnv()
.build();
auto serv(server::Server::fromEnv());
for(int i=1; i<argc; i++) {
std::cout<<"PV "<<argv[i]<<"\n";