mirror of
https://github.com/ratspeak/rsLXST
synced 2026-11-22 23:10:37 +00:00
ci: align voice source graph and formatting
This commit is contained in:
1 parent
2e7a616498
commit
07ab7d7955
4 files changed
+33
-18
No files matched your search
@@ -11,7 +11,7 @@ permissions:
|
||||
|
||||
env:
|
||||
RSLXST_RSRETICULUM_VERSION: 1.4.0
|
||||
RSLXST_RSRETICULUM_COMMIT: 4bba059d9343bd1296e5524a1c644a5137356dd7
|
||||
RSLXST_RSRETICULUM_COMMIT: 817a640ed1e11e3ff3e0ff048d8de13662bfdd78
|
||||
RSLXST_PYTHON_LXST_COMMIT: 1194c9011fe6402edc7aebe7ffe9650ea3b1afee
|
||||
RSLXST_PYTHON_RNS_COMMIT: b48b96e61676504e0a4e527b33b9a0b4495c6872
|
||||
|
||||
|
||||
@@ -2481,7 +2481,9 @@ pub struct TelephonyRnsEndpoint {
|
||||
}
|
||||
|
||||
struct OutgoingLinkAttempt {
|
||||
dispatch_result: Option<oneshot::Receiver<Result<(),rns_transport::link_messages::LinkRequestDispatchError>>>,
|
||||
dispatch_result: Option<
|
||||
oneshot::Receiver<Result<(), rns_transport::link_messages::LinkRequestDispatchError>>,
|
||||
>,
|
||||
link: Link,
|
||||
remote_public_key: [u8; 64],
|
||||
event_rx: mpsc::Receiver<DestinationEvent>,
|
||||
@@ -2551,8 +2553,12 @@ impl TelephonyRnsEndpoint {
|
||||
let (closed_tx, link_closed_rx) = mpsc::channel(64);
|
||||
manager.set_link_established_channel(established_tx);
|
||||
manager.set_link_identified_channel(identified_tx);
|
||||
manager.set_ordinary_packet_proof_strategy(ProofStrategy::ProveNone).expect("voice packets do not use delivery proofs");
|
||||
manager.set_link_packet_channel(packet_tx).expect("voice packets use automatic proof policy");
|
||||
manager
|
||||
.set_ordinary_packet_proof_strategy(ProofStrategy::ProveNone)
|
||||
.expect("voice packets do not use delivery proofs");
|
||||
manager
|
||||
.set_link_packet_channel(packet_tx)
|
||||
.expect("voice packets use automatic proof policy");
|
||||
manager.set_link_closed_channel(closed_tx);
|
||||
|
||||
Ok(Self {
|
||||
@@ -2745,15 +2751,15 @@ impl TelephonyRnsEndpoint {
|
||||
},
|
||||
)?;
|
||||
|
||||
let (dispatch_tx,dispatch_rx)=oneshot::channel();
|
||||
if let Err(error)=try_send_transport(
|
||||
let (dispatch_tx, dispatch_rx) = oneshot::channel();
|
||||
if let Err(error) = try_send_transport(
|
||||
&self.transport_tx,
|
||||
TransportMessage::SendLinkRequest {
|
||||
request: OutboundRequest {
|
||||
raw: build_link_request_packet(destination_hash, &request_data),
|
||||
destination_hash,
|
||||
},
|
||||
result_tx:dispatch_tx,
|
||||
result_tx: dispatch_tx,
|
||||
},
|
||||
) {
|
||||
self.close_outgoing_link_locally(link_id)?;
|
||||
@@ -2763,7 +2769,7 @@ impl TelephonyRnsEndpoint {
|
||||
self.outgoing_attempts.insert(
|
||||
link_id,
|
||||
OutgoingLinkAttempt {
|
||||
dispatch_result:Some(dispatch_rx),
|
||||
dispatch_result: Some(dispatch_rx),
|
||||
link,
|
||||
remote_public_key,
|
||||
event_rx,
|
||||
@@ -3234,14 +3240,14 @@ impl TelephonyRnsEndpoint {
|
||||
let Some(attempt) = self.outgoing_attempts.get_mut(&link_id) else {
|
||||
continue;
|
||||
};
|
||||
if let Some(receiver)=attempt.dispatch_result.as_mut() {
|
||||
if let Some(receiver) = attempt.dispatch_result.as_mut() {
|
||||
match receiver.try_recv() {
|
||||
Ok(Ok(()))=>attempt.dispatch_result=None,
|
||||
Ok(Err(_))|Err(oneshot::error::TryRecvError::Closed)=> {
|
||||
Ok(Ok(())) => attempt.dispatch_result = None,
|
||||
Ok(Err(_)) | Err(oneshot::error::TryRecvError::Closed) => {
|
||||
self.close_outgoing_link_locally(link_id)?;
|
||||
return Ok(Some(TelephonyLinkEvent::LinkClosed {link_id}));
|
||||
},
|
||||
Err(oneshot::error::TryRecvError::Empty)=>continue,
|
||||
return Ok(Some(TelephonyLinkEvent::LinkClosed { link_id }));
|
||||
}
|
||||
Err(oneshot::error::TryRecvError::Empty) => continue,
|
||||
}
|
||||
}
|
||||
match attempt.event_rx.try_recv() {
|
||||
@@ -3607,7 +3613,10 @@ impl TelephonyRnsEndpoint {
|
||||
.outgoing_links
|
||||
.get(&link_id)
|
||||
.and_then(|state| state.endpoint.as_ref())
|
||||
.is_some_and(|endpoint| endpoint.attached_interface != interface_id || endpoint.interface_owner != interface_owner)
|
||||
.is_some_and(|endpoint| {
|
||||
endpoint.attached_interface != interface_id
|
||||
|| endpoint.interface_owner != interface_owner
|
||||
})
|
||||
{
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
@@ -1108,7 +1108,10 @@ fn rns_endpoint_try_step_feeds_established_and_packet_events() {
|
||||
);
|
||||
|
||||
let (packet_tx, packet_rx) = mpsc::unbounded_channel();
|
||||
endpoint.manager.set_link_packet_channel(packet_tx.clone()).unwrap();
|
||||
endpoint
|
||||
.manager
|
||||
.set_link_packet_channel(packet_tx.clone())
|
||||
.unwrap();
|
||||
endpoint.link_packet_rx = packet_rx;
|
||||
let remote = identity(0xD2);
|
||||
core.caller_identified(link_id, remote).unwrap();
|
||||
@@ -1158,7 +1161,10 @@ fn rns_endpoint_try_drive_once_executes_step_commands() {
|
||||
.unwrap();
|
||||
|
||||
let (packet_tx, packet_rx) = mpsc::unbounded_channel();
|
||||
endpoint.manager.set_link_packet_channel(packet_tx.clone()).unwrap();
|
||||
endpoint
|
||||
.manager
|
||||
.set_link_packet_channel(packet_tx.clone())
|
||||
.unwrap();
|
||||
endpoint.link_packet_rx = packet_rx;
|
||||
packet_tx
|
||||
.send((
|
||||
|
||||
@@ -15,7 +15,7 @@ EXPECTED_PACKAGES = {"lxst-core", "lxst-codec2", "lxst-embedded", "lxst-rns", "l
|
||||
EXPECTED_MSRV = "1.89"
|
||||
EMBEDDED_MSRV = {"lxst-codec2": "1.87", "lxst-embedded": "1.87"}
|
||||
EXPECTED_RETICULUM_VERSION = "1.4.0"
|
||||
EXPECTED_RETICULUM_COMMIT = "4bba059d9343bd1296e5524a1c644a5137356dd7"
|
||||
EXPECTED_RETICULUM_COMMIT = "817a640ed1e11e3ff3e0ff048d8de13662bfdd78"
|
||||
EXPECTED_OPUS_DEPENDENCY = (
|
||||
'opus-rs = { version = "=0.1.29", default-features = false, '
|
||||
'features = ["heap"] }'
|
||||
|
||||
Reference in new issue
Block a user