From 37f1ce21a48872dcb8b12db332fc6500720091e2 Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Wed, 10 May 2023 09:46:42 +0200 Subject: [PATCH] server: export BatchRequestConfig (#1112) * server: re-export BatchRequestConfig * Update server/src/server.rs Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> * cargo fmt --------- Co-authored-by: Alexandru Vasile <60601340+lexnv@users.noreply.github.com> --- server/src/lib.rs | 2 +- server/src/server.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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.