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