docs, examples: Update cli version number and adjust ring size

This commit is contained in:
armaniferrante 2021-04-19 09:36:53 -07:00
parent 0de345f1a6
commit 14edcb038d
No known key found for this signature in database
GPG Key ID: 58BEF301E91F7828
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ npm install -g mocha
For now, we can use Cargo to install the CLI.
```bash
cargo install --git https://github.com/project-serum/anchor --tag v0.4.1 anchor-cli --locked
cargo install --git https://github.com/project-serum/anchor --tag v0.4.4 anchor-cli --locked
```
On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu,

View File

@ -84,7 +84,7 @@ impl ChatRoom {
self.head += 1;
}
fn index_of(counter: u64) -> usize {
std::convert::TryInto::try_into(counter % 10000).unwrap()
std::convert::TryInto::try_into(counter % 33607).unwrap()
}
}