Skip to content

Commit 07a3fb6

Browse files
committed
reafctor: reaname TorrustIndex to Settings
1 parent c9b1d5a commit 07a3fb6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/config/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use tokio::sync::RwLock;
1313
use torrust_index_located_error::{Located, LocatedError};
1414
use url::{ParseError, Url};
1515

16-
pub type TorrustIndex = v1::TorrustIndex;
16+
pub type TorrustIndex = v1::Settings;
1717
pub type Api = v1::api::Api;
1818
pub type Auth = v1::auth::Auth;
1919
pub type Database = v1::database::Database;

src/config/v1/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use self::website::Website;
2222

2323
/// The whole configuration for the index.
2424
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq)]
25-
pub struct TorrustIndex {
25+
pub struct Settings {
2626
/// Logging level. Possible values are: `Off`, `Error`, `Warn`, `Info`,
2727
/// `Debug` and `Trace`. Default is `Info`.
2828
pub log_level: Option<String>,
@@ -46,7 +46,7 @@ pub struct TorrustIndex {
4646
pub tracker_statistics_importer: TrackerStatisticsImporter,
4747
}
4848

49-
impl TorrustIndex {
49+
impl Settings {
5050
pub fn override_tracker_api_token(&mut self, tracker_api_token: &str) {
5151
self.tracker.override_tracker_api_token(tracker_api_token);
5252
}

0 commit comments

Comments
 (0)