Revision 1995ef2572bbefaa3bede1cb49bdba4e53157c05 authored by M. J. Fromberger on 22 September 2021, 21:26:35 UTC, committed by GitHub on 22 September 2021, 21:26:35 UTC
* rpc: Strip down the base RPC client interface. Prior to this change, the RPC client interface requires implementing the entire Service interface, but most of the methods of Service are not needed by the concrete clients. Dissociate the Client interface from the Service interface. - Extract only those methods of Service that are necessary to make the existing clients work. - Update the clients to combine Start/Onstart and Stop/OnStop. This does not change what the clients do to start or stop. Only the websocket clients make use of this functionality anyway. The websocket implementation uses some plumbing from the BaseService helper. We should be able to excising that entirely, but the current interface dependencies among the clients would require a much larger change, and one that leaks into other (non-RPC) packages. As a less-invasive intermediate step, preserve the existing client behaviour (and tests) by extracting the necessary subset of the BaseService functionality to an analogous RunState helper for clients. I plan to obsolete that type in a future PR, but for now this makes a useful waypoint. Related: - Clean up client implementations. - Update mocks.
1 parent d04b6c2
File | Mode | Size |
---|---|---|
json2wal | ||
keymigrate | ||
txs | ||
wal2json | ||
README.md | -rw-r--r-- | 61 bytes |
authors.sh | -rwxr-xr-x | 445 bytes |
build.sh | -rwxr-xr-x | 1.1 KB |
dist.sh | -rwxr-xr-x | 2.2 KB |
get_nodejs.sh | -rwxr-xr-x | 502 bytes |
linkify_changelog.py | -rw-r--r-- | 635 bytes |
mockery_generate.sh | -rwxr-xr-x | 100 bytes |
protocgen.sh | -rwxr-xr-x | 184 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...