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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user