diff options
| author | Christian Hopps <chopps@labn.net> | 2022-02-20 20:30:52 -0500 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2022-03-14 15:54:25 -0400 |
| commit | 48c93061f581dfea6beda4c9934db2bdb22bc774 (patch) | |
| tree | 9dd60bb30dd2622ba4847fb0ec80c81077949dad /lib/ldp_sync.h | |
| parent | 341e1d6e0a1f6524197142e679929bcd52385978 (diff) | |
lib: grpc: rework RPC handlers improve code clarity
- split NewRpcState object into 2, a Unary and a Streaming variant, which
then allows for the next.
- move all state machine details inside these new state objects
- use a template arg to allow for Streaming state tracking object
creation and deletion w/o requiring this in each specific RPC
hander.
- Code is more rugged by design now.
Thanks to Rafael Zalamena <rzalamena@opensourcerouting.org> for the cleanup
ideas/motivation.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/ldp_sync.h')
0 files changed, 0 insertions, 0 deletions
