-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
WSAStartup Error on Windows #377
Comments
I don't know Windows enough to debug this sorry |
Same error here. Compiled code for linux and windows. No error in Linux. In windows got:
|
Could you paste the exact snippet you're trying and the features you're enabling for lapin? |
@Keruspe I got same error. This is my code snippet. async fn declare_queue(&self, channel: &mut Channel) -> errors::Result<Queue> {
let queue_name = self.queue_name();
let field_table = self.queue_field_table();
let queue_declare_options = self.queue_declare_options();
let queue = channel
.queue_declare(queue_name, queue_declare_options, field_table)
.await?;
Ok(queue)
}
async fn unread_count(&self, channel: &mut Channel) -> errors::Result<u32> {
let queue = self.declare_queue(channel).await?;
Ok(queue.message_count())
}
#[tokio::test]
async fn test_unread_count() {
register_log();
let amqp_uri = conf!().amqp_uri().to_string();
let mut cfg = Config::default();
cfg.url = Some(amqp_uri);
let pool = cfg.create_pool(Some(Runtime::Tokio1)).unwrap();
let conn = pool.get().await.unwrap();
let mut channel = conn.create_channel().await.unwrap();
let unread_count = AuthStream::AuthUserInfoByIdStreams
.unread_count(&mut channel)
.await
.unwrap();
tracing::info!(?unread_count);
}
|
Thanks! |
Sure. What should I do? |
On Windows, I'm getting the following error log when creating a connection and channel in lapin, using it to publish and receive some messages and then letting the program reach the end of main.
The log seems to happen at the end of main. I suppose it has to do with stopping some threads that lapin create but I don't really know.
The text was updated successfully, but these errors were encountered: