Update discovery.rs
This commit is contained in:
parent
000d2446b5
commit
b2dd6ded1d
@ -349,7 +349,7 @@ impl Discovery {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn check_timestamp(&self, timestamp: u64) -> Result<(), NetworkError>{
|
fn check_timestamp(&self, timestamp: u64) -> Result<(), NetworkError> {
|
||||||
if self.check_timestamps && timestamp < time::get_time().sec as u64{
|
if self.check_timestamps && timestamp < time::get_time().sec as u64{
|
||||||
debug!(target: "discovery", "Expired packet");
|
debug!(target: "discovery", "Expired packet");
|
||||||
return Err(NetworkError::Expired);
|
return Err(NetworkError::Expired);
|
||||||
|
Loading…
Reference in New Issue
Block a user