Commit e0d56a4 1 parent 1d8d405 commit e0d56a4 Copy full SHA for e0d56a4
File tree 5 files changed +17
-17
lines changed
console/commands/tracker_statistics_importer
upgrades/from_v1_0_0_to_v2_0_0
5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 16
16
//! Statistics are also imported:
17
17
//!
18
18
//! - Periodically by the importer job. The importer job is executed every hour
19
- //! by default. See [`TrackerStatisticsImporter`](crate::config::TrackerStatisticsImporter)
20
- //! for more details.
19
+ //! by default. See [`TrackerStatisticsImporter`](crate::config::TrackerStatisticsImporter)
20
+ //! for more details.
21
21
//! - When a new torrent is added.
22
22
//! - When the API returns data about a torrent statistics are collected from
23
- //! the tracker in real time.
23
+ //! the tracker in real time.
24
24
use std:: env;
25
25
use std:: sync:: Arc ;
26
26
Original file line number Diff line number Diff line change 88
88
//! ```
89
89
//!
90
90
//! > **NOTICE**: those are the commands for `Ubuntu`. If you are using a
91
- //! different OS, you will need to install the equivalent packages. Please
92
- //! refer to the documentation of your OS.
91
+ //! > different OS, you will need to install the equivalent packages. Please
92
+ //! > refer to the documentation of your OS.
93
93
//!
94
94
//! With the default configuration you will need to create the `storage` directory:
95
95
//!
154
154
//! > **WARNING**: The `.env` file is also used by docker-compose.
155
155
//!
156
156
//! > **NOTICE**: Refer to the [sqlx-cli](https://github.com/launchbadge/sqlx/tree/main/sqlx-cli)
157
- //! documentation for other commands to create new migrations or run them.
157
+ //! > documentation for other commands to create new migrations or run them.
158
158
//!
159
159
//! > **NOTICE**: You can run the index with [tmux](https://github.com/tmux/tmux/wiki) with `tmux new -s torrust-index`.
160
160
//!
Original file line number Diff line number Diff line change 23
23
//!
24
24
//! - The database schema was changed.
25
25
//! - The torrents are now stored entirely in the database. The torrent files
26
- //! are not stored in the filesystem anymore. This command reads the torrent
27
- //! files from the filesystem and store them in the database.
26
+ //! are not stored in the filesystem anymore. This command reads the torrent
27
+ //! files from the filesystem and store them in the database.
28
28
//!
29
29
//! We recommend to download your production database and the torrent files dir.
30
30
//! And run the command in a local environment with the version `v2.0.0.`. Then,
36
36
//! NOTES for `torrust_users` table transfer:
37
37
//!
38
38
//! - In v2, the table `torrust_user` contains a field `date_registered` non
39
- //! existing in v1. We changed that column to allow `NULL`. We also added the
40
- //! new column `date_imported` with the datetime when the upgrader was executed.
39
+ //! existing in v1. We changed that column to allow `NULL`. We also added the
40
+ //! new column `date_imported` with the datetime when the upgrader was executed.
41
41
//!
42
42
//! NOTES for `torrust_user_profiles` table transfer:
43
43
//!
44
44
//! - In v2, the table `torrust_user_profiles` contains two new fields: `bio`
45
- //! and `avatar`. Empty string is used as default value.
45
+ //! and `avatar`. Empty string is used as default value.
46
46
//!
47
47
//!
48
48
//! If you want more information about this command you can read the [issue 56](https://github.com/torrust/torrust-index/issues/56).
Original file line number Diff line number Diff line change @@ -94,9 +94,9 @@ struct ParsedInfoDictFromMetainfoFile {
94
94
/// This function will return an error if:
95
95
///
96
96
/// - The torrent file is not a valid bencoded torrent file containing an `info`
97
- /// dictionary key.
97
+ /// dictionary key.
98
98
/// - The original torrent info-hash cannot be bencoded from the parsed `info`
99
- /// dictionary is not a valid bencoded dictionary.
99
+ /// dictionary is not a valid bencoded dictionary.
100
100
pub fn calculate_info_hash ( bytes : & [ u8 ] ) -> Result < InfoHash , DecodeTorrentFileError > {
101
101
// Extract the info dictionary
102
102
let metainfo: ParsedInfoDictFromMetainfoFile =
Original file line number Diff line number Diff line change 7
7
//! set the environment variable `TORRUST_INDEX_E2E_SHARED` to `true`.
8
8
//!
9
9
//! > **NOTICE**: The server must be running before running the tests. The
10
- //! server url is hardcoded to `http://localhost:3001` for now. We are planning
11
- //! to make it configurable in the future via a environment variable.
10
+ //! > server url is hardcoded to `http://localhost:3001` for now. We are planning
11
+ //! > to make it configurable in the future via a environment variable.
12
12
//!
13
13
//! ```text
14
14
//! TORRUST_INDEX_E2E_SHARED=true cargo test
22
22
//! ```
23
23
//!
24
24
//! > **NOTICE**: Some tests require the real tracker to be running, so they
25
- //! can only be run in shared mode until we implement a mock for the
26
- //! `torrust_index::tracker::TrackerService`.
25
+ //! > can only be run in shared mode until we implement a mock for the
26
+ //! > `torrust_index::tracker::TrackerService`.
27
27
//!
28
28
//! You may have errors like `Too many open files (os error 24)`. If so, you
29
29
//! need to increase the limit of open files for the current user. You can do
You can’t perform that action at this time.
0 commit comments