From 05dcb652a0acba529a5674e00312fba2a8ef20e6 Mon Sep 17 00:00:00 2001 From: Roderick van Domburg Date: Sun, 2 Oct 2022 00:08:36 +0200 Subject: [PATCH] Fix example --- discovery/examples/discovery.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discovery/examples/discovery.rs b/discovery/examples/discovery.rs index f7dee532..28a99e1a 100644 --- a/discovery/examples/discovery.rs +++ b/discovery/examples/discovery.rs @@ -1,4 +1,5 @@ use futures::StreamExt; +use librespot_core::SessionConfig; use librespot_discovery::DeviceType; use sha1::{Digest, Sha1}; @@ -7,7 +8,7 @@ async fn main() { let name = "Librespot"; let device_id = hex::encode(Sha1::digest(name.as_bytes())); - let mut server = librespot_discovery::Discovery::builder(device_id) + let mut server = librespot_discovery::Discovery::builder(device_id, SessionConfig::default().client_id) .name(name) .device_type(DeviceType::Computer) .launch()