Skip to content

Commit

Permalink
Reduce the number of pages to 10 (1000 coins) to reduce the load on b…
Browse files Browse the repository at this point in the history
…ackend... (#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
  • Loading branch information
lyricnz authored Oct 28, 2021
1 parent b921c09 commit ac946a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cointop/cointop.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ var DefaultSortBy = "rank"
var DefaultPerPage = uint(100)

// DefaultMaxPages ...
var DefaultMaxPages = uint(35)
var DefaultMaxPages = uint(10)

// DefaultColorscheme ...
var DefaultColorscheme = "cointop"
Expand Down
3 changes: 2 additions & 1 deletion docs/content/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down

0 comments on commit ac946a7

Please sign in to comment.