From 0aa3cbdc92e84daaab5b586126e8b1b1ac2e1fec Mon Sep 17 00:00:00 2001 From: ssuchichan Date: Sun, 30 Jun 2024 17:01:09 +0800 Subject: [PATCH] fix. --- explorer/src/service/v2/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/src/service/v2/block.rs b/explorer/src/service/v2/block.rs index 6c10790..a8b59bc 100644 --- a/explorer/src/service/v2/block.rs +++ b/explorer/src/service/v2/block.rs @@ -229,7 +229,7 @@ pub async fn get_blocks( ) -> Result>>> { let mut pool = state.pool.acquire().await?; let page = params.page.unwrap_or(1); - let page_size = params.page_size.unwrap_or(10); + let page_size = params.page_size.unwrap_or(0); let sql_total = "SELECT max(height) FROM block"; let row = sqlx::query(sql_total).fetch_one(&mut *pool).await?;