From ac946a7d737c9ca5e7513958b6e452dd3fc9846c Mon Sep 17 00:00:00 2001 From: Simon Roberts Date: Fri, 29 Oct 2021 10:32:26 +1100 Subject: [PATCH] Reduce the number of pages to 10 (1000 coins) to reduce the load on backend... (#255) * Reduce the number of pages to 10 (1000 coins) to reduce the load on backend, and increase refresh time. See #104 #228 * Add note about --max-pages and --per-page --- cointop/cointop.go | 2 +- docs/content/faq.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cointop/cointop.go b/cointop/cointop.go index 4050175..d4579ed 100644 --- a/cointop/cointop.go +++ b/cointop/cointop.go @@ -206,7 +206,7 @@ var DefaultSortBy = "rank" var DefaultPerPage = uint(100) // DefaultMaxPages ... -var DefaultMaxPages = uint(35) +var DefaultMaxPages = uint(10) // DefaultColorscheme ... var DefaultColorscheme = "cointop" diff --git a/docs/content/faq.md b/docs/content/faq.md index cbe8547..70055f1 100644 --- a/docs/content/faq.md +++ b/docs/content/faq.md @@ -15,7 +15,8 @@ draft: false ## What coins does this support? - This supports any coin supported by the API being used to fetch coin information. + This supports any coin supported by the API being used to fetch coin information. There is, however, a limit on the number of coins that + cointop fetches by default. You can increase this by passing `--max-pages` and `--per-page` arguments on the command line. ## How do I set the API to use?