mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-21 16:59:06 -05:00
improvement: define websocket send queue (unlimited->1024)
This commit is contained in:
parent
14fe9f9ee1
commit
d929ae2752
|
@ -79,6 +79,7 @@ async fn handle_web_request(
|
|||
Ok(upgraded) => {
|
||||
// set WebSocket configuration options
|
||||
let config = WebSocketConfig {
|
||||
max_send_queue: Some(1024),
|
||||
max_message_size: settings.limits.max_ws_message_bytes,
|
||||
max_frame_size: settings.limits.max_ws_frame_bytes,
|
||||
..Default::default()
|
||||
|
|
Loading…
Reference in New Issue
Block a user