Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example: add more examples #91

Closed
wants to merge 4 commits into from

Conversation

Caiooooo
Copy link

No description provided.

littledivy

This comment was marked as outdated.

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor nits before we can land this

}
}

unsafe impl Send for HyperConnection {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a safety comment here as to why this is safe?

}

use std::pin::Pin;
// struct HyperConnection(monoio::net::tcp::stream_poll::TcpStreamPoll);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// struct HyperConnection(monoio::net::tcp::stream_poll::TcpStreamPoll);

Comment on lines 104 to 105
// !!!!! do not use proxychains or other proxy tools, the tcp steam connect may be failed !!!!
let uri: Uri = "data-stream.binance.com".parse::<hyper::Uri>().unwrap();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should connect to a local echo server instead of a remote service like binance.

@Caiooooo
Copy link
Author

Caiooooo commented Jan 4, 2025

this is decided by monoio runtime features, and the safe reason can checkout bytedance/monoio#218

@Caiooooo Caiooooo requested a review from littledivy January 15, 2025 08:02
@Caiooooo Caiooooo closed this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants