Skip to content

Commit f9be3c9

Browse files
author
ivan-skryabin
committed
cc grpc: fix grpc middleware error handling doc
commit_hash:d8a04a7b5c4847a9731b3c18d8f000fab2dc25d9
1 parent df2c105 commit f9be3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/docs/en/userver/grpc/server_middleware_implementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ An error status from a handler will be passed to a first `OnCallFinish` and that
200200
There are 3 middlewares `A`, `B`, `C`.
201201
Cases:
202202
1. `A::OnCallStart` and `B::OnCallStart` succeed, but `C::OnCallStart` fails (by `SetError` or exception) ⇒ `B::OnCallFinish` and `A::OnCallFinish` will be called (remember that `OnCallFinish` order is reversed).
203-
2. If all `OnCallStart` succeed and `C::OnCallFinish` fails, `B::OnCallStart` and `A::OnCallStart` will be called and these hooks get an error status from `C::OnCallFinish`.
203+
2. If all `OnCallStart` succeed and `C::OnCallFinish` fails, `B::OnCallFinish` and `A::OnCallFinish` will be called and these hooks get an error status from `C::OnCallFinish`.
204204
3. If a handler returns an error, all `OnCallFinish` will be called.
205205
4. If there are errors in `PostRecvMessage`/`PreSendMessage` ⇒ RPC is failed ⇒ all `OnCallFinish` hooks will be called.
206206

0 commit comments

Comments
 (0)