Skip to content

Commit 7c5575a

Browse files
committed
Merge #1546: Overhaul stats: Renaming package torrent-repository to swarm-coordination-registry
bbe974d refactor: [#1519] rename SwarmHandle to CoordinatorHandle (Jose Celano) 290c9eb refactor: [#1519] rename Swarms to Registry (Jose Celano) 9146681 refactor: [#1519] move mod registry (Jose Celano) cfc5b34 refactor: [#1519] rename mod swarms to resgistry (Jose Celano) 63f04e5 refactor: [#1519] extract mod coordinator (Jose Celano) ba37801 refactor: [#1519] rename Swarms to Registry (Jose Celano) 2768306 refactor: [#1519] rename Swarm to Coordinator (Jose Celano) 2b7a251 refactor: [#1519] rename crate torrust-tracker-torrent-repository to torrust-tracker-swarm-coordination-registry (Jose Celano) 55149bc refactor: [#1519] rename dir torrent-repository (Jose Celano) Pull request description: Some renamings to better express the intention. ### Subtasks - [x] Rename dir `packages/torrent-repository` to `packages/swarm-coordination-registry` - [x] Rename crate `torrust-tracker-torrent-repository` to `torrust-tracker-swarm-coordination-registry` - [x] Rename type `Swarm` to `Coordinator` - [x] Rename type `Swarms` to `Registry` - [x] Move `Coordinator` and `Registry` inside a `Swarm` module. ACKs for top commit: josecelano: ACK bbe974d Tree-SHA512: c68331a3da2e01e06aeb4783c39b70e6cb36a7525a0635c98791388f34fb40bbbfaf563c4407d9bc538db0a7487464d083a34985b3e6a917a501e205c919c93a
2 parents 3bade2c + bbe974d commit 7c5575a

File tree

45 files changed

+191
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+191
-192
lines changed

.github/workflows/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
cargo publish -p torrust-tracker-located-error
7878
cargo publish -p torrust-tracker-metrics
7979
cargo publish -p torrust-tracker-primitives
80+
cargo publish -p torrust-tracker-swarm-coordination-registry
8081
cargo publish -p torrust-tracker-test-helpers
8182
cargo publish -p torrust-tracker-torrent-benchmarking
82-
cargo publish -p torrust-tracker-torrent-repository
8383
cargo publish -p torrust-udp-tracker-server

Cargo.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ torrust-rest-tracker-api-core = { version = "3.0.0-develop", path = "packages/re
5555
torrust-server-lib = { version = "3.0.0-develop", path = "packages/server-lib" }
5656
torrust-tracker-clock = { version = "3.0.0-develop", path = "packages/clock" }
5757
torrust-tracker-configuration = { version = "3.0.0-develop", path = "packages/configuration" }
58-
torrust-tracker-torrent-repository = { version = "3.0.0-develop", path = "packages/torrent-repository" }
58+
torrust-tracker-swarm-coordination-registry = { version = "3.0.0-develop", path = "packages/swarm-coordination-registry" }
5959
torrust-udp-tracker-server = { version = "3.0.0-develop", path = "packages/udp-tracker-server" }
6060
tracing = "0"
6161
tracing-subscriber = { version = "0", features = ["json"] }

packages/axum-http-tracker-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ torrust-server-lib = { version = "3.0.0-develop", path = "../server-lib" }
3333
torrust-tracker-clock = { version = "3.0.0-develop", path = "../clock" }
3434
torrust-tracker-configuration = { version = "3.0.0-develop", path = "../configuration" }
3535
torrust-tracker-primitives = { version = "3.0.0-develop", path = "../primitives" }
36-
torrust-tracker-torrent-repository = { version = "3.0.0-develop", path = "../torrent-repository" }
36+
torrust-tracker-swarm-coordination-registry = { version = "3.0.0-develop", path = "../swarm-coordination-registry" }
3737
tower = { version = "0", features = ["timeout"] }
3838
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] }
3939
tracing = "0"

packages/axum-http-tracker-server/src/environment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use torrust_axum_server::tsl::make_rust_tls;
1010
use torrust_server_lib::registar::Registar;
1111
use torrust_tracker_configuration::{logging, Configuration};
1212
use torrust_tracker_primitives::peer;
13-
use torrust_tracker_torrent_repository::container::TorrentRepositoryContainer;
13+
use torrust_tracker_swarm_coordination_registry::container::TorrentRepositoryContainer;
1414

1515
use crate::server::{HttpServer, Launcher, Running, Stopped};
1616

packages/axum-http-tracker-server/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ mod tests {
259259
use torrust_axum_server::tsl::make_rust_tls;
260260
use torrust_server_lib::registar::Registar;
261261
use torrust_tracker_configuration::{logging, Configuration};
262+
use torrust_tracker_swarm_coordination_registry::container::TorrentRepositoryContainer;
262263
use torrust_tracker_test_helpers::configuration::ephemeral_public;
263-
use torrust_tracker_torrent_repository::container::TorrentRepositoryContainer;
264264

265265
use crate::server::{HttpServer, Launcher};
266266

packages/axum-rest-tracker-api-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ torrust-tracker-clock = { version = "3.0.0-develop", path = "../clock" }
3939
torrust-tracker-configuration = { version = "3.0.0-develop", path = "../configuration" }
4040
torrust-tracker-metrics = { version = "3.0.0-develop", path = "../metrics" }
4141
torrust-tracker-primitives = { version = "3.0.0-develop", path = "../primitives" }
42-
torrust-tracker-torrent-repository = { version = "3.0.0-develop", path = "../torrent-repository" }
42+
torrust-tracker-swarm-coordination-registry = { version = "3.0.0-develop", path = "../swarm-coordination-registry" }
4343
torrust-udp-tracker-server = { version = "3.0.0-develop", path = "../udp-tracker-server" }
4444
tower = { version = "0", features = ["timeout"] }
4545
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] }

packages/axum-rest-tracker-api-server/src/environment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use torrust_rest_tracker_api_core::container::TrackerHttpApiCoreContainer;
1212
use torrust_server_lib::registar::Registar;
1313
use torrust_tracker_configuration::{logging, Configuration};
1414
use torrust_tracker_primitives::peer;
15-
use torrust_tracker_torrent_repository::container::TorrentRepositoryContainer;
15+
use torrust_tracker_swarm_coordination_registry::container::TorrentRepositoryContainer;
1616
use torrust_udp_tracker_server::container::UdpTrackerServerContainer;
1717

1818
use crate::server::{ApiServer, Launcher, Running, Stopped};

packages/axum-rest-tracker-api-server/src/v1/context/stats/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub async fn get_metrics_handler(
7777
State(state): State<(
7878
Arc<InMemoryTorrentRepository>,
7979
Arc<RwLock<BanService>>,
80-
Arc<torrust_tracker_torrent_repository::statistics::repository::Repository>,
80+
Arc<torrust_tracker_swarm_coordination_registry::statistics::repository::Repository>,
8181
Arc<bittorrent_tracker_core::statistics::repository::Repository>,
8282
Arc<bittorrent_http_tracker_core::statistics::repository::Repository>,
8383
Arc<bittorrent_udp_tracker_core::statistics::repository::Repository>,

packages/http-tracker-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ torrust-tracker-configuration = { version = "3.0.0-develop", path = "../configur
2828
torrust-tracker-events = { version = "3.0.0-develop", path = "../events" }
2929
torrust-tracker-metrics = { version = "3.0.0-develop", path = "../metrics" }
3030
torrust-tracker-primitives = { version = "3.0.0-develop", path = "../primitives" }
31-
torrust-tracker-torrent-repository = { version = "3.0.0-develop", path = "../torrent-repository" }
31+
torrust-tracker-swarm-coordination-registry = { version = "3.0.0-develop", path = "../swarm-coordination-registry" }
3232
tracing = "0"
3333

3434
[dev-dependencies]

0 commit comments

Comments
 (0)