neoneo-go/pkg/rpcclient/actor
Anna Shaleva 6dbae7edc4 rpcclient: fix WS-client unsubscription process
Do not block subscribers until the unsubscription request to RPC server
is completed. Otherwise, another notification may be received from the
RPC server which will block the unsubscription process.

At the same time, fix event-based waiter. We must not block the receiver
channel during unsubscription because there's a chance that subsequent
event will be sent by the server. We need to read this event in order not
to block the WSClient's readloop.
2022-11-16 23:44:30 +03:00
..
actor.go rpc: refactor waiter-related actor code 2022-10-24 06:09:36 +03:00
actor_test.go rpc: add tests for RPC waiters 2022-10-24 06:09:36 +03:00
compat_test.go rpc: add compat tests for RPC* interfaces and Client implementations 2022-10-24 06:09:36 +03:00
doc_test.go context: define a constant for transaction context type 2022-09-08 14:33:04 +03:00
maker.go actor: allow providing default attributes/hooks to be used 2022-08-29 15:08:37 +03:00
maker_test.go rpc: add tests for RPC waiters 2022-10-24 06:09:36 +03:00
waiter.go rpcclient: fix WS-client unsubscription process 2022-11-16 23:44:30 +03:00
waiter_test.go rpc: refactor WSClient subscriptions API 2022-10-26 15:32:54 +03:00