From 99b97d949530527ec5f9297eb4727362dcab9a47 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 18 Feb 2024 22:19:43 -0500 Subject: [PATCH] fix: need to use new_outboard --- bao/rust/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bao/rust/src/main.rs b/bao/rust/src/main.rs index d055de2..0117ef3 100644 --- a/bao/rust/src/main.rs +++ b/bao/rust/src/main.rs @@ -29,7 +29,7 @@ pub struct BaoService { #[tonic::async_trait] impl Bao for BaoService { async fn new_hasher(&self, _request: Request) -> Result, Status> { - let encoder = Encoder::new(Cursor::new(Vec::new())); + let encoder = Encoder::new_outboard(Cursor::new(Vec::new())); let id = Uuid::new_v4(); { let mut state = self.state.write().await;