fix: need to use new_outboard

This commit is contained in:
Derrick Hammer 2024-02-18 22:19:43 -05:00
parent 901c68fdfc
commit 99b97d9495
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ pub struct BaoService {
#[tonic::async_trait] #[tonic::async_trait]
impl Bao for BaoService { impl Bao for BaoService {
async fn new_hasher(&self, _request: Request<NewHasherRequest>) -> Result<Response<NewHasherResponse>, Status> { async fn new_hasher(&self, _request: Request<NewHasherRequest>) -> Result<Response<NewHasherResponse>, Status> {
let encoder = Encoder::new(Cursor::new(Vec::new())); let encoder = Encoder::new_outboard(Cursor::new(Vec::new()));
let id = Uuid::new_v4(); let id = Uuid::new_v4();
{ {
let mut state = self.state.write().await; let mut state = self.state.write().await;