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
co-authored by Marshall Bowers Marshall
parent 8c54a46202
commit 9751e61101
6 changed files with 160 additions and 22 deletions
+1 -5
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
{