Skip to content

Commit

Permalink
server: export BatchRequestConfig (#1112)
Browse files Browse the repository at this point in the history
* server: re-export BatchRequestConfig

* Update server/src/server.rs

Co-authored-by: Alexandru Vasile <[email protected]>

* cargo fmt

---------

Co-authored-by: Alexandru Vasile <[email protected]>
  • Loading branch information
niklasad1 and lexnv authored May 10, 2023
1 parent bef63ae commit 37f1ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
1 change: 1 addition & 0 deletions server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 37f1ce2

Please sign in to comment.