|
11 | 11 | //! 2. Initialize static variables.
|
12 | 12 | //! 3. Initialize logging.
|
13 | 13 | //! 4. Initialize the domain tracker.
|
14 |
| -use bittorrent_udp_tracker_core::crypto::ephemeral_instance_keys; |
15 | 14 | use bittorrent_udp_tracker_core::crypto::keys::{self, Keeper as _};
|
16 |
| -use torrust_tracker_clock::static_time; |
17 | 15 | use torrust_tracker_configuration::validator::Validator;
|
18 | 16 | use torrust_tracker_configuration::{logging, Configuration};
|
19 | 17 | use tracing::instrument;
|
@@ -71,18 +69,10 @@ pub fn initialize_global_services(configuration: &Configuration) {
|
71 | 69 | /// These values are accessible throughout the entire application:
|
72 | 70 | ///
|
73 | 71 | /// - The time when the application started.
|
74 |
| -/// - An ephemeral instance random seed. This seed is used for encryption and it's changed when the main application process is restarted. |
| 72 | +/// - An ephemeral instance random seed. This seed is used for encryption and |
| 73 | +/// it's changed when the main application process is restarted. |
75 | 74 | #[instrument(skip())]
|
76 | 75 | pub fn initialize_static() {
|
77 |
| - // Set the time of Torrust app starting |
78 |
| - lazy_static::initialize(&static_time::TIME_AT_APP_START); |
79 |
| - |
80 |
| - // Initialize the Ephemeral Instance Random Seed |
81 |
| - lazy_static::initialize(&ephemeral_instance_keys::RANDOM_SEED); |
82 |
| - |
83 |
| - // Initialize the Ephemeral Instance Random Cipher |
84 |
| - lazy_static::initialize(&ephemeral_instance_keys::RANDOM_CIPHER_BLOWFISH); |
85 |
| - |
86 |
| - // Initialize the Zeroed Cipher |
87 |
| - lazy_static::initialize(&ephemeral_instance_keys::ZEROED_TEST_CIPHER_BLOWFISH); |
| 76 | + torrust_tracker_clock::initialize_static(); |
| 77 | + bittorrent_udp_tracker_core::initialize_static(); |
88 | 78 | }
|
0 commit comments