Skip to content

Commit

Permalink
fix: format errors
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Oct 30, 2024
1 parent 84d608b commit 8719b00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ pub mod peer;
pub mod swarm_metadata;
pub mod torrent_metrics;

use bittorrent_primitives::info_hash::InfoHash;
use std::collections::BTreeMap;
use std::time::Duration;

use bittorrent_primitives::info_hash::InfoHash;

/// Duration since the Unix Epoch.
pub type DurationSinceUnixEpoch = Duration;

Expand Down
2 changes: 1 addition & 1 deletion src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,7 @@ mod tests {
use std::sync::Arc;

use aquatic_udp_protocol::{AnnounceEvent, NumberOfBytes, PeerId};
use bittorrent_primitives::info_hash::fixture::gen_seeded_infohash;
use bittorrent_primitives::info_hash::InfoHash;
use torrust_tracker_configuration::TORRENT_PEERS_LIMIT;
use torrust_tracker_primitives::DurationSinceUnixEpoch;
Expand All @@ -1261,7 +1262,6 @@ mod tests {
use crate::core::peer::Peer;
use crate::core::services::tracker_factory;
use crate::core::{TorrentsMetrics, Tracker};
use bittorrent_primitives::info_hash::fixture::gen_seeded_infohash;

fn public_tracker() -> Tracker {
tracker_factory(&configuration::ephemeral_public())
Expand Down

0 comments on commit 8719b00

Please sign in to comment.