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)]
pub struct NetworkManager {
#[export]
fake_ping: u64,
fake_ping: u32,
pub peer: Option<PeerKind>,
@ -275,7 +275,7 @@ impl NetworkManager {
None,
PeerConfig::default()
.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 {
Ok(mut peer) => {