fn spawn_writer_task(
task_group: &TaskGroup,
writer: FramedWriter<PeerNetMsgCodec>,
queue: Arc<AsyncQueue<PeerNetMsg>>,
)Expand description
Spawn a task that drains queue into writer. Exits when the
writer fails (peer hung up).
fn spawn_writer_task(
task_group: &TaskGroup,
writer: FramedWriter<PeerNetMsgCodec>,
queue: Arc<AsyncQueue<PeerNetMsg>>,
)Spawn a task that drains queue into writer. Exits when the
writer fails (peer hung up).