fix: correct WalkPageSize to 100 (actual server PageSize cap) and update comment

This commit is contained in:
daniel-c-harvey
2026-06-23 07:33:24 -04:00
parent 5f4807cc4a
commit 7a0ccdd784
@@ -25,8 +25,8 @@ namespace DeepDrftPublic.Controllers;
[ApiController] [ApiController]
public class CrawlDirectiveController : ControllerBase public class CrawlDirectiveController : ControllerBase
{ {
// A generous page size keeps the walk to a handful of round-trips even for a large catalogue. // 100 is the server-side PageSize cap, so this is the largest page the walk can actually get.
private const int WalkPageSize = 200; private const int WalkPageSize = 100;
// The release walk deserializes a bare PagedResult<ReleaseDto> (no ApiResultDto envelope), matching TrackClient. // The release walk deserializes a bare PagedResult<ReleaseDto> (no ApiResultDto envelope), matching TrackClient.
private static readonly JsonSerializerOptions JsonOptions = new(JsonSerializerDefaults.Web); private static readonly JsonSerializerOptions JsonOptions = new(JsonSerializerDefaults.Web);