Fix typos
This commit is contained in:
@ -173,7 +173,7 @@ impl Packets {
|
|||||||
let mut i = 0;
|
let mut i = 0;
|
||||||
//DOCUMENTED SIDE-EFFECT
|
//DOCUMENTED SIDE-EFFECT
|
||||||
//Performance out of the IO without poll
|
//Performance out of the IO without poll
|
||||||
// * block on the socket until its readable
|
// * block on the socket until it's readable
|
||||||
// * set the socket to non blocking
|
// * set the socket to non blocking
|
||||||
// * read until it fails
|
// * read until it fails
|
||||||
// * set it back to blocking before returning
|
// * set it back to blocking before returning
|
||||||
@ -304,7 +304,7 @@ impl Blob {
|
|||||||
let mut v = VecDeque::new();
|
let mut v = VecDeque::new();
|
||||||
//DOCUMENTED SIDE-EFFECT
|
//DOCUMENTED SIDE-EFFECT
|
||||||
//Performance out of the IO without poll
|
//Performance out of the IO without poll
|
||||||
// * block on the socket until its readable
|
// * block on the socket until it's readable
|
||||||
// * set the socket to non blocking
|
// * set the socket to non blocking
|
||||||
// * read until it fails
|
// * read until it fails
|
||||||
// * set it back to blocking before returning
|
// * set it back to blocking before returning
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//! The `streamer` module defines a set of services for effecently pulling data from udp sockets.
|
//! The `streamer` module defines a set of services for efficiently pulling data from UDP sockets.
|
||||||
|
//!
|
||||||
use crdt::Crdt;
|
use crdt::Crdt;
|
||||||
#[cfg(feature = "erasure")]
|
#[cfg(feature = "erasure")]
|
||||||
use erasure;
|
use erasure;
|
||||||
@ -220,11 +221,11 @@ fn recv_window(
|
|||||||
);
|
);
|
||||||
if p.get_id().expect("get_id in fn recv_window") == leader_id {
|
if p.get_id().expect("get_id in fn recv_window") == leader_id {
|
||||||
//TODO
|
//TODO
|
||||||
//need to copy the retransmited blob
|
//need to copy the retransmitted blob
|
||||||
//otherwise we get into races with which thread
|
//otherwise we get into races with which thread
|
||||||
//should do the recycling
|
//should do the recycling
|
||||||
//
|
//
|
||||||
//a better absraction would be to recycle when the blob
|
//a better abstraction would be to recycle when the blob
|
||||||
//is dropped via a weakref to the recycler
|
//is dropped via a weakref to the recycler
|
||||||
let nv = recycler.allocate();
|
let nv = recycler.allocate();
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user