Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/config/v2/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ impl Api {
}

fn default_max_torrent_page_size() -> u8 {
30
100
}

fn default_user_profile_page_size() -> u8 {
10
}

fn default_max_user_profile_page_size() -> u8 {
100
30
}
}
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
//!
//! [api]
//! default_torrent_page_size = 10
//! max_torrent_page_size = 30
//! max_torrent_page_size = 100
//!
//! [tracker_statistics_importer]
//! torrent_info_update_interval = 3600
Expand Down
2 changes: 1 addition & 1 deletion src/web/api/server/v1/contexts/settings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
//! },
//! "api": {
//! "default_torrent_page_size": 10,
//! "max_torrent_page_size": 30
//! "max_torrent_page_size": 100
//! },
//! "registration": {
//! "email": {
Expand Down
2 changes: 1 addition & 1 deletion src/web/api/server/v1/contexts/torrent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
//! ```toml
//! [api]
//! default_torrent_page_size = 10
//! max_torrent_page_size = 30
//! max_torrent_page_size = 100
//! ```
//!
//! **Sorting GET parameters**
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/web/api/v1/contexts/torrent/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ mod for_guests {

let uploader = new_logged_in_user(&env).await;

let max_torrent_page_size = 30;
let max_torrent_page_size = 100;

// Given we insert one torrent more than the page size limit
for _ in 0..max_torrent_page_size {
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/default_configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ user_quota_period_seconds = 3600

[api]
default_torrent_page_size = 10
max_torrent_page_size = 30
max_torrent_page_size = 100

[tracker_statistics_importer]
port = 3002
Expand Down
Loading