rest-server: update examples code to daemon split

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-08-01 10:27:44 +02:00
parent bedbaae252
commit 9d921901d3

View File

@ -198,7 +198,7 @@ async fn run() -> Result<(), Error> {
let rest_server = RestServer::new(config);
// then we have to create a daemon that listens, accepts and serves the api to clients
proxmox_rest_server::daemon::create_daemon(
proxmox_daemon::server::create_daemon(
([127, 0, 0, 1], 65000).into(),
move |listener| {
let incoming = hyper::server::conn::AddrIncoming::from_listener(listener)?;