diff options
author | Simon Roberts <lyricnz@users.noreply.github.com> | 2021-10-29 10:32:26 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-29 10:32:26 +1100 |
commit | ac946a7d737c9ca5e7513958b6e452dd3fc9846c (patch) | |
tree | 289105bea309a1910050344959b84b5d61f33a62 | |
parent | b921c091d6f882b6c34cdde15e846f7ffd44ea6d (diff) |
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
-rw-r--r-- | cointop/cointop.go | 2 | ||||
-rw-r--r-- | 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? |