Skip to content

Commit

Permalink
Increase katana RPC request timeout from 2 -> 20 secs (#1455)
Browse files Browse the repository at this point in the history
Refer to #1456 for full context.

The new timeout value has been chosen arbitrarily, I just thought it seems reasonable enough.
  • Loading branch information
kariy committed Jan 22, 2024
1 parent 79278a6 commit e02e430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/katana/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub async fn spawn(sequencer: Arc<KatanaSequencer>, config: ServerConfig) -> Res
let middleware = tower::ServiceBuilder::new()
.layer(cors)
.layer(ProxyGetRequestLayer::new("/", "health")?)
.timeout(Duration::from_secs(2));
.timeout(Duration::from_secs(20));

let server = ServerBuilder::new()
.set_logger(RpcLogger)
Expand Down

0 comments on commit e02e430

Please sign in to comment.