Fix error
This commit is contained in:
parent
1f7f412882
commit
d1f2607779
@ -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) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user