Skip to content

Commit

Permalink
Use smallvec
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnwa committed Oct 12, 2020
1 parent f0dcf03 commit 8115707
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -21,7 +21,7 @@ crc32fast = "1.2"
actix = "0.10.0"
actix-rt = "1"
tokio-openssl = "0.4"
srtp = { git = "https://github.com/Mnwa/srtp", branch = "vec" }
srtp = { git = "https://github.com/Mnwa/srtp", branch = "master" }
actix-web = "3"
actix-files = "0.4"
smallvec = "1.4"
Expand Down
2 changes: 1 addition & 1 deletion src/client/stream.rs
Expand Up @@ -120,7 +120,7 @@ impl AsyncWrite for ClientSslPackets {
match self
.get_mut()
.outgoing_writer
.send(DataPacket::from_slice(buf))
.send(DataPacket::from(buf))
.poll_unpin(cx)
{
Poll::Ready(Ok(_)) => Poll::Ready(Ok(buf.len())),
Expand Down
2 changes: 1 addition & 1 deletion src/server/udp.rs
Expand Up @@ -341,4 +341,4 @@ impl Future for UdpMassSender {
}
}

pub type DataPacket = SmallVec<[u8; 512]>;
pub type DataPacket = SmallVec<[u8; 2048]>;

0 comments on commit 8115707

Please sign in to comment.