File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -412,13 +412,7 @@ impl Status {
412
412
// > status. Note that the frequency of PINGs is highly dependent on the network
413
413
// > environment, implementations are free to adjust PING frequency based on network and
414
414
// > application requirements, which is why it's mapped to unavailable here.
415
- //
416
- // Likewise, if we are unable to connect to the server, map this to UNAVAILABLE. This is
417
- // consistent with the behavior of a C++ gRPC client when the server is not running, and
418
- // matches the spec of:
419
- // > The service is currently unavailable. This is most likely a transient condition that
420
- // > can be corrected if retried with a backoff.
421
- if err. is_timeout ( ) || err. is_connect ( ) {
415
+ if err. is_timeout ( ) {
422
416
return Some ( Status :: unavailable ( err. to_string ( ) ) ) ;
423
417
}
424
418
@@ -1009,3 +1003,4 @@ mod tests {
1009
1003
assert_eq ! ( status. details( ) , DETAILS ) ;
1010
1004
}
1011
1005
}
1006
+
You can’t perform that action at this time.
0 commit comments