You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(tonic): Move ConnectError type from transport (#1828)
* chore(tonic): Move TimeoutExpired out of transport
By moving the TimeoutExpired type from the transport module
to the the tonic engine proper, the type is made available to
other transport implementations and tonic can be built without
the "server" feature while still returning a Status indicating
the timeout.
Alternative transport implementations can use the type, now that it is
moved, when they want the tonic Status error handling to recognize the
error as having been triggered by a timeout in the transport logic. The
tonic Status error will have a code of Cancelled with a message of
"Timeout expired".
There is already a test for this:
cargo test picks_server_timeout_if_thats_sorter
which worked the original way and contines to work; but now a new
transport implementation can get the same behavior.
Addresses #1825.
* chore(tonic): Move ConnectError out of transport
0 commit comments