-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: [#1268] move announce logic from axum to http_tracker_core …
…package
- Loading branch information
1 parent
e48aaf5
commit 74815ab
Showing
6 changed files
with
113 additions
and
57 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
//! Primitive types and function for `BitTorrent` HTTP trackers. | ||
pub mod percent_encoding; | ||
pub mod v1; | ||
|
||
use torrust_tracker_clock::clock; | ||
|
||
/// This code needs to be copied into each crate. | ||
/// Working version, for production. | ||
#[cfg(not(test))] | ||
#[allow(dead_code)] | ||
pub(crate) type CurrentClock = clock::Working; | ||
|
||
/// Stopped version, for testing. | ||
#[cfg(test)] | ||
#[allow(dead_code)] | ||
pub(crate) type CurrentClock = clock::Stopped; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters