change: Rename tower-batch to tower-batch-control (#6907)

This commit is contained in:
Deirdre Connolly 2023-06-11 23:59:10 -04:00 committed by GitHub
parent 2e379811c3
commit 8bf2c4be3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 18 additions and 18 deletions

View File

@ -4718,7 +4718,7 @@ dependencies = [
]
[[package]]
name = "tower-batch"
name = "tower-batch-control"
version = "0.2.40"
dependencies = [
"color-eyre",
@ -5728,7 +5728,7 @@ dependencies = [
"tinyvec",
"tokio",
"tower",
"tower-batch",
"tower-batch-control",
"tower-fallback",
"tracing",
"tracing-error",

View File

@ -10,7 +10,7 @@ members = [
"zebra-node-services",
"zebra-test",
"zebra-utils",
"tower-batch",
"tower-batch-control",
"tower-fallback",
]

View File

@ -123,7 +123,7 @@ into several components:
of blocks and transactions: all consensus
rules that can be checked independently of the chain state, such as
verification of signatures, proofs, and scripts. Internally, the library
uses [`tower-batch`](https://doc.zebra.zfnd.org/tower_batch/index.html) to
uses [`tower-batch-control`](https://doc.zebra.zfnd.org/tower_batch_control/index.html) to
perform automatic, transparent batch processing of contemporaneous
verification requests.

View File

@ -14,7 +14,7 @@ with the [tokio](https://docs.rs/tokio/) executor.
At a higher level, Zebra also uses [`tower::Service`s](https://docs.rs/tower/0.4.1/tower/trait.Service.html),
[`tower::Buffer`s](https://docs.rs/tower/0.4.1/tower/buffer/struct.Buffer.html),
and our own [`tower-batch`](https://github.com/ZcashFoundation/zebra/tree/main/tower-batch)
and our own [`tower-batch-control`](https://github.com/ZcashFoundation/zebra/tree/main/tower-batch-control)
implementation.
# Motivation
@ -737,7 +737,7 @@ particularly important for code that modifies Zebra's highly concurrent crates:
- `zebra-network`
- `zebra-state`
- `zebra-consensus`
- `tower-batch`
- `tower-batch-control`
- `tower-fallback`
## Monitoring Async Code

View File

@ -1,5 +1,5 @@
[package]
name = "tower-batch"
name = "tower-batch-control"
version = "0.2.40"
authors = ["Zcash Foundation <zebra@zfnd.org>"]
license = "MIT"

View File

@ -7,7 +7,7 @@ use ed25519_zebra::*;
use futures::stream::{FuturesOrdered, StreamExt};
use rand::thread_rng;
use tower::{Service, ServiceExt};
use tower_batch::Batch;
use tower_batch_control::Batch;
use tower_fallback::Fallback;
// ============ service impl ============

View File

@ -4,7 +4,7 @@ use std::time::Duration;
use tokio_test::{assert_pending, assert_ready, assert_ready_err, task};
use tower::{Service, ServiceExt};
use tower_batch::{error, Batch};
use tower_batch_control::{error, Batch};
use tower_test::mock;
#[tokio::test]

View File

@ -54,7 +54,7 @@ orchard = "0.4.0"
zcash_proofs = { version = "0.11.0", features = ["local-prover", "multicore", "download-params"] }
tower-fallback = { path = "../tower-fallback/" }
tower-batch = { path = "../tower-batch/" }
tower-batch-control = { path = "../tower-batch-control/" }
zebra-script = { path = "../zebra-script" }
zebra-state = { path = "../zebra-state" }

View File

@ -14,7 +14,7 @@ use rand::thread_rng;
use rayon::prelude::*;
use tokio::sync::watch;
use tower::{util::ServiceFn, Service};
use tower_batch::{Batch, BatchControl};
use tower_batch_control::{Batch, BatchControl};
use tower_fallback::Fallback;
use zebra_chain::primitives::ed25519::{batch, *};

View File

@ -5,7 +5,7 @@ use std::time::Duration;
use color_eyre::eyre::{eyre, Result};
use futures::stream::{FuturesUnordered, StreamExt};
use tower::ServiceExt;
use tower_batch::Batch;
use tower_batch_control::Batch;
use crate::primitives::ed25519::*;

View File

@ -22,7 +22,7 @@ use rayon::prelude::*;
use tokio::sync::watch;
use tower::{util::ServiceFn, Service};
use tower_batch::{Batch, BatchControl};
use tower_batch_control::{Batch, BatchControl};
use tower_fallback::{BoxedError, Fallback};
use zebra_chain::{

View File

@ -17,7 +17,7 @@ use rayon::prelude::*;
use thiserror::Error;
use tokio::sync::watch;
use tower::{util::ServiceFn, Service};
use tower_batch::{Batch, BatchControl};
use tower_batch_control::{Batch, BatchControl};
use tower_fallback::Fallback;
#[cfg(test)]

View File

@ -14,7 +14,7 @@ use rand::thread_rng;
use rayon::prelude::*;
use tokio::sync::watch;
use tower::{util::ServiceFn, Service};
use tower_batch::{Batch, BatchControl};
use tower_batch_control::{Batch, BatchControl};
use tower_fallback::Fallback;
use zebra_chain::primitives::redjubjub::{batch, *};

View File

@ -7,7 +7,7 @@ use std::time::Duration;
use color_eyre::eyre::{eyre, Result};
use futures::stream::{FuturesUnordered, StreamExt};
use tower::ServiceExt;
use tower_batch::Batch;
use tower_batch_control::Batch;
async fn sign_and_verify<V>(mut verifier: V, n: usize) -> Result<(), V::Error>
where

View File

@ -14,7 +14,7 @@ use rand::thread_rng;
use rayon::prelude::*;
use tokio::sync::watch;
use tower::{util::ServiceFn, Service};
use tower_batch::{Batch, BatchControl};
use tower_batch_control::{Batch, BatchControl};
use tower_fallback::Fallback;
use zebra_chain::primitives::reddsa::{batch, orchard, Error};

View File

@ -7,7 +7,7 @@ use std::time::Duration;
use color_eyre::eyre::{eyre, Result};
use futures::stream::{FuturesUnordered, StreamExt};
use tower::ServiceExt;
use tower_batch::Batch;
use tower_batch_control::Batch;
use zebra_chain::primitives::reddsa::{
orchard::{Binding, SpendAuth},