chore: bump Rust version to 1.76 (#3632)

This commit is contained in:
Thomas Eizinger
2024-02-14 04:01:22 +11:00
committed by GitHub
parent f18ec6e4d5
commit 6c2fdcfd0a
2 changed files with 18 additions and 17 deletions

View File

@@ -156,22 +156,23 @@ impl Eventloop {
}) => {
let tunnel = Arc::clone(&self.tunnel);
match self.connection_request_tasks.try_push(
(req.client.id, req.reference.clone()),
async move {
let conn = tunnel
.set_peer_connection_request(
req.client.payload,
req.client.peer.into(),
req.relays,
req.client.id,
req.expires_at,
req.resource,
)
.await?;
Ok(GatewayResponse::ConnectionAccepted(conn))
},
) {
let connection_request = async move {
let conn = tunnel
.set_peer_connection_request(
req.client.payload,
req.client.peer.into(),
req.relays,
req.client.id,
req.expires_at,
req.resource,
)
.await?;
Ok(GatewayResponse::ConnectionAccepted(conn))
};
match self
.connection_request_tasks
.try_push((req.client.id, req.reference.clone()), connection_request)
{
Err(futures_bounded::PushError::BeyondCapacity(_)) => {
tracing::warn!("Too many connections requests, dropping existing one");
}

View File

@@ -1,2 +1,2 @@
[toolchain]
channel = "1.75.0"
channel = "1.76.0"