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:
parent
8c54a46202
commit
9751e61101
6 changed files with 160 additions and 22 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue