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
@@ -71,8 +71,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()
server::Server serv = server::Server::fromEnv()
.addPV(argv[1], pv);
// (optional) Print the configuration this server is using