Mercurial > lbo > hg > geohub
changeset 98:584f160f1db5
geohub: Export: Extend default limit
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Wed, 09 Dec 2020 20:22:58 +0100 |
parents | 397c7e0b406f |
children | cc85f4b02f8e |
files | src/main.rs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.rs Wed Dec 09 09:37:56 2020 +0100 +++ b/src/main.rs Wed Dec 09 20:22:58 2020 +0100 @@ -163,7 +163,7 @@ let to_ts = to .and_then(util::flexible_timestamp_parse) .unwrap_or(chrono::Utc::now()); - let limit = limit.unwrap_or(16384); + let limit = limit.unwrap_or(1 << 16); // 65536 let result = db.retrieve(client.as_str(), from_ts, to_ts, &secret, limit, last); match result { Ok(points) => Ok(points),