Commit 02f68b9 1 parent 7ed9c43 commit 02f68b9 Copy full SHA for 02f68b9
File tree 5 files changed +231
-160
lines changed
5 files changed +231
-160
lines changed Original file line number Diff line number Diff line change @@ -25,5 +25,6 @@ The minor version will be incremented upon a breaking change and the patch versi
25
25
- geyser: wait all transactions before process block ([ #10 ] ( https://github.com/solana-stream-solutions/solfees/pull/10 ) )
26
26
- frontend: init ([ #8 ] ( https://github.com/solana-stream-solutions/solfees/pull/8 ) )
27
27
- geyser: use process_compute_budget_instructions ([ #15 ] ( https://github.com/solana-stream-solutions/solfees/pull/15 ) )
28
+ - api: improve parallelism ([ #16 ] ( https://github.com/solana-stream-solutions/solfees/pull/16 ) )
28
29
29
30
### Breaking
Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ listen_rpc:
15
15
body_limit : 16KiB # Maximum body size
16
16
request_calls_max : 5 # Maximum number of calls in on request
17
17
request_timeout : 60s # Request timeout (processed by dedicated tasks, see `pool_size`)
18
- request_queue_max : 5000 # Maximum number of requests in the queue (each request can contain max `request_calls_max` calls)
19
- streams_channel_capacity : 300 # Maximum number of messages in WebSocket channel before disconnect
18
+ calls_queue_max : 16384 # Maximum number of requests in the queue (each request can contain max `request_calls_max` calls)
19
+ streams_channel_capacity : 512 # Maximum number of messages in WebSocket channel before disconnect
20
20
pool_size : 2 # Number of workers processing requests (WebSocket streams processed by separate task)
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ async fn main2(config: Config) -> anyhow::Result<()> {
17
17
let ( solana_rpc, solana_rpc_futs) = SolanaRpc :: new (
18
18
config. listen_rpc . request_calls_max ,
19
19
config. listen_rpc . request_timeout ,
20
- config. listen_rpc . request_queue_max ,
20
+ config. listen_rpc . calls_queue_max ,
21
21
config. listen_rpc . streams_channel_capacity ,
22
22
config. listen_rpc . pool_size ,
23
23
) ;
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ pub struct ConfigListenRpc {
159
159
pub request_calls_max : usize ,
160
160
#[ serde( with = "humantime_serde" ) ]
161
161
pub request_timeout : Duration ,
162
- pub request_queue_max : usize ,
162
+ pub calls_queue_max : usize ,
163
163
pub streams_channel_capacity : usize ,
164
164
pub pool_size : usize ,
165
165
}
@@ -171,8 +171,8 @@ impl Default for ConfigListenRpc {
171
171
body_limit : 16 * 1024 , // 16KiB
172
172
request_calls_max : 5 ,
173
173
request_timeout : Duration :: from_secs ( 60 ) ,
174
- request_queue_max : 5_000 ,
175
- streams_channel_capacity : 300 ,
174
+ calls_queue_max : 16_384 ,
175
+ streams_channel_capacity : 512 ,
176
176
pool_size : 2 ,
177
177
}
178
178
}
You can’t perform that action at this time.
0 commit comments