From 5695c1b06e540517dce923a5bf0115e5edcfc5a9 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 3 Mar 2023 15:25:44 -0800 Subject: [PATCH] add steps for kafka library --- README.md | 7 ++++--- TODO.md | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e3af4e51..f53c6244 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,10 @@ Each server has different limits to configure. The `soft_limit` is the number of ## Quick development -1. Run `docker-compose up -d` to start the database and caches. See `docker-compose.yml` for details. -2. Copy `./config/example.toml` to `./config/development.toml` and change settings to match your setup. -3. Run `cargo` commands: +1. `brew install librdkafka` or `sudo apt-get install librdkafka-dev` +2. Run `docker-compose up -d` to start the database and caches. See `docker-compose.yml` for details. +3. Copy `./config/example.toml` to `./config/development.toml` and change settings to match your setup. +4. Run `cargo` commands: ``` $ cargo run --release -- --help diff --git a/TODO.md b/TODO.md index ea19e987..6b2ad470 100644 --- a/TODO.md +++ b/TODO.md @@ -381,6 +381,7 @@ These are not yet ordered. There might be duplicates. We might not actually need - [ ] all anyhow::Results need to be replaced with FrontendErrorResponse. - [ ] rename FrontendErrorResponse to Web3ProxyError - [ ] almost all the anyhows should be Web3ProxyError::BadRequest + - as is, these errors are seen as 500 errors and so haproxy keeps retrying them - change premium concurrency limit to be against ip+rpckey - then sites like curve.fi don't have to worry about their user count - it does mean we will have a harder time capacity planning from the number of keys