Show rate limit notices (#15515)

This UI change is behind a `ZedPro` feature flag so that it won't be
visible until we're ready to launch that service.

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
Max Brunsfeld 2024-07-31 12:05:19 -07:00 committed by GitHub
parent 8c54a46202
commit 9751e61101
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 160 additions and 22 deletions

View file

@ -516,11 +516,7 @@ impl Peer {
future::ready(match response {
Ok(response) => {
if let Some(proto::envelope::Payload::Error(error)) = &response.payload {
Some(Err(anyhow!(
"RPC request {} failed - {}",
T::NAME,
error.message
)))
Some(Err(RpcError::from_proto(&error, T::NAME)))
} else if let Some(proto::envelope::Payload::EndStream(_)) =
&response.payload
{