Advance forge rollout, Ethereum rails, and NBC sources
This commit is contained in:
parent
be26313225
commit
7d84510eac
88 changed files with 11230 additions and 302 deletions
|
|
@ -1,6 +1,9 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use iroh::{EndpointAddr, endpoint::{ConnectOptions, QuicTransportConfig}};
|
||||
use iroh::{
|
||||
EndpointAddr,
|
||||
endpoint::{ConnectOptions, QuicTransportConfig},
|
||||
};
|
||||
use url::Url;
|
||||
|
||||
use crate::{ALPN_H3, ClientError, Session};
|
||||
|
|
@ -17,10 +20,7 @@ impl Client {
|
|||
}
|
||||
|
||||
/// Creates a client from an endpoint and a transport config.
|
||||
pub fn with_transport_config(
|
||||
endpoint: iroh::Endpoint,
|
||||
config: QuicTransportConfig,
|
||||
) -> Self {
|
||||
pub fn with_transport_config(endpoint: iroh::Endpoint, config: QuicTransportConfig) -> Self {
|
||||
Self { endpoint, config }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,10 +44,7 @@ impl RecvStream {
|
|||
&mut self,
|
||||
max_length: usize,
|
||||
) -> Result<Option<quinn::Chunk>, ReadError> {
|
||||
self.inner
|
||||
.read_chunk(max_length)
|
||||
.await
|
||||
.map_err(Into::into)
|
||||
self.inner.read_chunk(max_length).await.map_err(Into::into)
|
||||
}
|
||||
|
||||
/// Read chunks of data from the stream. See [`quinn::RecvStream::read_chunks`].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue