Skip to content

Commit

Permalink
fix(http): [#159] minor text fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Jan 30, 2023
1 parent 2754189 commit c89a1f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/tracker/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Id {
#[must_use]
/// Converts to hex string.
///
/// For the Id `-qB00000000000000000` ti returns `2d71423030303030303030303030303030303030`
/// For the Id `-qB00000000000000000` it returns `2d71423030303030303030303030303030303030`
///
/// For example:
///
Expand Down
6 changes: 3 additions & 3 deletions tests/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ use torrust_tracker::{ephemeral_instance_keys, logging, static_time, tracker};

use super::connection_info::ConnectionInfo;

/// Starts a HTTP tracker with mode "public"
/// Starts a HTTP tracker with mode "public" in settings
pub async fn start_public_http_tracker() -> Server {
let mut configuration = ephemeral_configuration();
configuration.mode = Mode::Public;
start_custom_http_tracker(Arc::new(configuration)).await
}

/// Starts a HTTP tracker with mode "listed"
/// Starts a HTTP tracker with mode "listed" in settings
pub async fn start_whitelisted_http_tracker() -> Server {
let mut configuration = ephemeral_configuration();
configuration.mode = Mode::Listed;
start_custom_http_tracker(Arc::new(configuration)).await
}

/// Starts a HTTP tracker with mode "listed"
/// Starts a HTTP tracker with mode "private" in settings
pub async fn start_private_http_tracker() -> Server {
let mut configuration = ephemeral_configuration();
configuration.mode = Mode::Private;
Expand Down
4 changes: 2 additions & 2 deletions tests/http_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ mod http_tracker_server {
};

#[tokio::test]
async fn should_respond_when_only_the_mandatory_fields_are_provided() {
async fn should_respond_if_only_the_mandatory_fields_are_provided() {
let http_tracker_server = start_default_http_tracker().await;

let mut params = QueryBuilder::default().query().params();
Expand Down Expand Up @@ -251,7 +251,7 @@ mod http_tracker_server {

#[tokio::test]
async fn should_not_fail_when_the_event_param_is_invalid() {
// All invalid values are ignored as if the `event` param was empty
// All invalid values are ignored as if the `event` param were empty

let http_tracker_server = start_default_http_tracker().await;

Expand Down

0 comments on commit c89a1f3

Please sign in to comment.