Make the cast in Bidirectional stream smaller (#387)
Since we already define the type we can just use it instead of writing it again
This commit is contained in:
@@ -517,9 +517,7 @@ async fn route_chat(
|
|||||||
};
|
};
|
||||||
|
|
||||||
Ok(Response::new(Box::pin(output)
|
Ok(Response::new(Box::pin(output)
|
||||||
as Pin<
|
as Self::RouteChatStream))
|
||||||
Box<dyn Stream<Item = Result<RouteNote, Status>> + Send + Sync + 'static>,
|
|
||||||
>))
|
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user