diff --git a/server/src/lib.rs b/server/src/lib.rs index e69b50e767..d5306b56aa 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -45,5 +45,5 @@ pub use future::ServerHandle; pub use jsonrpsee_core::server::*; pub use jsonrpsee_core::{id_providers::*, traits::IdProvider}; pub use jsonrpsee_types as types; -pub use server::{Builder as ServerBuilder, Server}; +pub use server::{BatchRequestConfig, Builder as ServerBuilder, Server}; pub use tracing; diff --git a/server/src/server.rs b/server/src/server.rs index 9f65b2d169..6ad323fc77 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -207,6 +207,7 @@ struct Settings { message_buffer_capacity: u32, } +/// Configuration for batch request handling. #[derive(Debug, Copy, Clone)] pub enum BatchRequestConfig { /// Batch requests are disabled.