add exchanges to internal model

This commit is contained in:
nora 2022-03-20 17:52:41 +01:00
parent 504757b324
commit 58de7f1e2d
15 changed files with 169 additions and 40 deletions

View file

@ -1,7 +1,7 @@
use std::sync::Arc;
use bytes::Bytes;
use smallvec::SmallVec;
use tinyvec::TinyVec;
use crate::{connection::ContentHeader, newtype_id};
@ -14,7 +14,7 @@ pub struct MessageInner {
pub id: MessageId,
pub header: ContentHeader,
pub routing: RoutingInformation,
pub content: SmallVec<[Bytes; 1]>,
pub content: TinyVec<[Bytes; 1]>,
}
#[derive(Debug)]