torrust / torrust-tracker

A modern and feature-rich (private) BitTorrent tracker.
https://torrust.com
GNU Affero General Public License v3.0
366 stars 42 forks source link

Config overhaul: split tracker mode #934

Closed josecelano closed 4 months ago

josecelano commented 4 months ago

Replace mode core config option with private and listed flags:

From:

[core]
mode = "public"
tracker_usage_statistics = true
inactive_peer_cleanup_interval = 600

To:

[core]
inactive_peer_cleanup_interval = 600
listed = false
private = false
tracker_usage_statistics = true
codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 77.63158% with 17 lines in your changes missing coverage. Please review.

Project coverage is 77.47%. Comparing base (5f1fdbd) to head (b6b841d).

Files Patch % Lines
packages/configuration/src/v1/core.rs 81.48% 5 Missing :warning:
src/core/mod.rs 80.00% 4 Missing :warning:
src/lib.rs 0.00% 4 Missing :warning:
packages/test-helpers/src/configuration.rs 66.66% 3 Missing :warning:
src/app.rs 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #934 +/- ## =========================================== + Coverage 77.29% 77.47% +0.18% =========================================== Files 183 183 Lines 9689 9666 -23 =========================================== Hits 7489 7489 + Misses 2200 2177 -23 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

josecelano commented 4 months ago

ACK b6b841d6fe244b8deaa62629791d100623a508ce