Fix error

This commit is contained in:
Sofia 2026-08-08 23:52:14 +03:00
parent 1f7f412882
commit d1f2607779

View File

@ -28,7 +28,7 @@ use crate::{
#[class(base=Node)] #[class(base=Node)]
pub struct NetworkManager { pub struct NetworkManager {
#[export] #[export]
fake_ping: u64, fake_ping: u32,
pub peer: Option<PeerKind>, pub peer: Option<PeerKind>,
@ -275,7 +275,7 @@ impl NetworkManager {
None, None,
PeerConfig::default() PeerConfig::default()
.with_identifier(NetworkManager::identifier()) .with_identifier(NetworkManager::identifier())
.with_additional_ping(Duration::from_millis(self.fake_ping)), .with_additional_ping(Duration::from_millis(self.fake_ping as u64)),
); );
match peer { match peer {
Ok(mut peer) => { Ok(mut peer) => {