Skip to content

Commit fd5840b

Browse files
committed
refactor: [torrust#797] fixed tests failing and update default max page size value
1 parent fde858e commit fd5840b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/config/v2/api.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ impl Api {
4545
}
4646

4747
fn default_max_user_profile_page_size() -> u8 {
48-
100
48+
30
4949
}
5050
}

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
//!
220220
//! [api]
221221
//! default_torrent_page_size = 10
222-
//! max_torrent_page_size = 30
222+
//! max_torrent_page_size = 100
223223
//!
224224
//! [tracker_statistics_importer]
225225
//! torrent_info_update_interval = 3600

src/web/api/server/v1/contexts/settings/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
//! },
8686
//! "api": {
8787
//! "default_torrent_page_size": 10,
88-
//! "max_torrent_page_size": 30
88+
//! "max_torrent_page_size": 100
8989
//! },
9090
//! "registration": {
9191
//! "email": {

src/web/api/server/v1/contexts/torrent/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
//! ```toml
202202
//! [api]
203203
//! default_torrent_page_size = 10
204-
//! max_torrent_page_size = 30
204+
//! max_torrent_page_size = 100
205205
//! ```
206206
//!
207207
//! **Sorting GET parameters**

tests/fixtures/default_configuration.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ user_quota_period_seconds = 3600
7474

7575
[api]
7676
default_torrent_page_size = 10
77-
max_torrent_page_size = 30
77+
max_torrent_page_size = 100
7878

7979
[tracker_statistics_importer]
8080
port = 3002

0 commit comments

Comments
 (0)