Update discovery.rs

This commit is contained in:
Gav Wood 2016-02-27 15:02:05 +01:00
parent 000d2446b5
commit b2dd6ded1d

View File

@ -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);