neoneo-go/pkg/services
Leonard Lyubich e126bcc462 services/rpcsrv: Wait for subscription process to complete when stopped
Previously RPC server shutdown procedure listened to the execution
channel and stopped at the first element that arrived in the queue. This
could lead to the following problems:
 * stopper could steal the execution result from subscriber
 * stopper didn't wait for other subscription actions to complete

Add dedicated channel to `Server` for subscription routine. Close the
channel on `handleSubEvents` return and wait for signal in `Shutdown`.

Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
2023-04-17 10:42:50 +04:00
..
helpers/rpcbroadcaster *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
metrics services: allow multiple listen addresses for simple services 2022-12-07 11:23:01 +03:00
notary *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
oracle *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00
rpcsrv services/rpcsrv: Wait for subscription process to complete when stopped 2023-04-17 10:42:50 +04:00
stateroot *: replace interface{} with any keyword 2023-04-04 13:22:42 +03:00