Skip to content

Commit e746c9c

Browse files
committed
build: update jsonrpsee crates
Signed-off-by: Joseph Livesey <[email protected]>
1 parent 9844f3c commit e746c9c

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ criterion = { version = "0.5.1", features = ["async_std"] }
3232
futures-util = "0.3.31"
3333
hyper = { version = "1.6.0", features = ["full"] }
3434
insta = { version = "1.42.2", features = ["json"] }
35-
jsonrpsee = { version = "0.24.9", features = ["macros", "server"] }
36-
jsonrpsee-core = "0.24.9"
35+
jsonrpsee = { version = "0.25.1", features = ["macros", "server"] }
36+
jsonrpsee-core = "0.25.1"
3737
lazy_static = "1.5.0"
3838
log = "0.4.27"
3939
prometheus = "0.14.0"

tap_aggregator/src/server.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use axum::{error_handling::HandleError, routing::post_service, BoxError, Router}
88
use hyper::StatusCode;
99
use jsonrpsee::{
1010
proc_macros::rpc,
11-
server::{ServerBuilder, ServerHandle, TowerService},
11+
server::{ServerBuilder, ServerConfig, ServerHandle, TowerService},
1212
};
1313
use lazy_static::lazy_static;
1414
use log::{error, info};
@@ -459,12 +459,14 @@ fn create_json_rpc_service(
459459
max_response_body_size: u32,
460460
max_concurrent_connections: u32,
461461
) -> Result<(TowerService<Identity, Identity>, ServerHandle)> {
462-
let service_builder = ServerBuilder::new()
462+
let config = ServerConfig::builder()
463463
.max_request_body_size(max_request_body_size)
464464
.max_response_body_size(max_response_body_size)
465465
.max_connections(max_concurrent_connections)
466466
.http_only()
467-
.to_service_builder();
467+
.build();
468+
469+
let service_builder = ServerBuilder::new().set_config(config).to_service_builder();
468470
use jsonrpsee::server::stop_channel;
469471
let (stop_handle, server_handle) = stop_channel();
470472
let handle = service_builder.build(rpc_impl.into_rpc(), stop_handle);

tap_core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ criterion.workspace = true
2323
insta.workspace = true
2424
rstest.workspace = true
2525
serde_json.workspace = true
26-
thegraph-core = { workspace = true, features = ["alloy-signer-mnemonic"] }
2726

2827
[features]
2928
default = ["in_memory"]

tap_integration_tests/tests/indexer_mock.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use jsonrpsee::{
1111
http_client::{HttpClient, HttpClientBuilder},
1212
proc_macros::rpc,
1313
rpc_params,
14-
server::{ServerBuilder, ServerHandle},
14+
server::{ServerBuilder, ServerConfig, ServerHandle},
1515
};
1616
use jsonrpsee_core::client::ClientT;
1717
use tap_aggregator::jsonrpsee_helpers;
@@ -163,8 +163,9 @@ where
163163
{
164164
// Setting up the JSON RPC server
165165
println!("Starting server...");
166+
let server_config = ServerConfig::builder().http_only().build();
166167
let server = ServerBuilder::new()
167-
.http_only()
168+
.set_config(server_config)
168169
.build(format!("127.0.0.1:{}", port))
169170
.await?;
170171
let addr = server.local_addr()?;

0 commit comments

Comments
 (0)