Skip to content

Commit 02c6fd5

Browse files
authored
docs(ironrdp): fix server example (#616)
The rt-multi-thread feature of tokio is not enabled when compiling the example alone (without feature unification from other crates of the workspace).
1 parent 97ef9f0 commit 02c6fd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ironrdp/examples/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ use ironrdp::cliprdr::backend::{CliprdrBackend, CliprdrBackendFactory};
1616
use ironrdp::connector::DesktopSize;
1717
use ironrdp::rdpsnd::pdu::ClientAudioFormatPdu;
1818
use ironrdp::rdpsnd::server::{RdpsndServerHandler, RdpsndServerMessage};
19+
use ironrdp::server::tokio;
1920
use ironrdp::server::tokio::sync::mpsc::UnboundedSender;
2021
use ironrdp::server::tokio::time::{self, sleep, Duration};
21-
use ironrdp::server::tokio::{self};
2222
use ironrdp::server::{
2323
BitmapUpdate, CliprdrServerFactory, Credentials, DisplayUpdate, KeyboardEvent, MouseEvent, PixelFormat, PixelOrder,
2424
RdpServer, RdpServerDisplay, RdpServerDisplayUpdates, RdpServerInputHandler, ServerEvent, ServerEventSender,
@@ -32,7 +32,7 @@ USAGE:
3232
cargo run --example=server -- [--bind-addr <SOCKET ADDRESS>] [--cert <CERTIFICATE>] [--key <CERTIFICATE KEY>] [--user USERNAME] [--pass PASSWORD] [--sec tls|hybrid]
3333
";
3434

35-
#[tokio::main]
35+
#[tokio::main(flavor = "current_thread")]
3636
async fn main() -> Result<(), anyhow::Error> {
3737
let action = match parse_args() {
3838
Ok(action) => action,

0 commit comments

Comments
 (0)