chore(sdk): Merge local import with file-level imports
@@ -25,8 +25,8 @@ use ruma::{
ToDeviceEvent,
},
serde::Raw,
- DeviceId, EventId, MilliSecondsSinceUnixEpoch, OwnedDeviceId, OwnedUserId, RoomId,
- TransactionId, UserId,
+ uint, DeviceId, EventId, MilliSecondsSinceUnixEpoch, OwnedDeviceId, OwnedUserId, RoomId,
+ TransactionId, UInt, UserId,
};
use tracing::{info, trace, warn};
@@ -192,8 +192,6 @@ impl VerificationMachine {
}
fn is_timestamp_valid(timestamp: MilliSecondsSinceUnixEpoch) -> bool {
- use ruma::{uint, UInt};
-
// The event should be ignored if the event is older than 10 minutes
let old_timestamp_threshold: UInt = uint!(600);
// The event should be ignored if the event is 5 minutes or more into the
