Skip to content

Commit 667d7a4

Browse files
committed
fix examples
1 parent a6fa5df commit 667d7a4

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

example-messagepack/src/server.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ async fn run_main() -> Result<(), Box<dyn std::error::Error>> {
3434
.unwrap_or_else(|_| "0.0.0.0:9000".to_string())
3535
.parse()?,
3636
DemoRpcSocketService,
37+
4 << 20,
38+
1 << 20,
39+
128,
40+
64 << 10,
3741
)
3842
.await?;
3943
server.set_max_queued_outbound_messages(512);

example-proto-tls/src/server.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ async fn run_main() -> Result<(), Box<dyn std::error::Error>> {
6868
.parse()?,
6969
DemoRpcSocketService {
7070
tls_acceptor: Arc::new(server_config).into(),
71+
7172
},
73+
4 << 20,
74+
1 << 20,
75+
128,
76+
64 << 10,
7277
)
7378
.await?;
7479
server.set_max_queued_outbound_messages(512);

example-proto/src/server.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ async fn run_main() -> Result<(), Box<dyn std::error::Error>> {
3535
.unwrap_or_else(|_| "0.0.0.0:9000".to_string())
3636
.parse()?,
3737
DemoRpcSocketService,
38+
4 << 20,
39+
1 << 20,
40+
128,
41+
64 << 10,
3842
)
3943
.await?;
4044
server.set_max_queued_outbound_messages(512);

0 commit comments

Comments
 (0)