aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.rs')
-rw-r--r--src/writer.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/writer.rs b/src/writer.rs
index 7d2ecb4..1717032 100644
--- a/src/writer.rs
+++ b/src/writer.rs
@@ -15,8 +15,12 @@ impl<W: tokio::io::AsyncWrite> Writer<W> {
}
}
- pub fn frame(&mut self, data: &[u8]) -> crate::error::Result<()> {
- let bytes = self.creator.frame(data)?;
+ pub fn frame(
+ &mut self,
+ time: std::time::Instant,
+ data: &[u8],
+ ) -> crate::error::Result<()> {
+ let bytes = self.creator.frame(time, data)?;
self.to_write.extend(bytes.iter());
Ok(())
}