mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
refactor: simplify rpc code (#2823)
This commit is contained in:
@@ -92,7 +92,7 @@ class HelperProcessManager {
|
||||
...appMethods,
|
||||
};
|
||||
|
||||
const server = AsyncCall<PeersAPIs.HelperToMain>(mainToHelperServer, {
|
||||
this.rpc = AsyncCall<PeersAPIs.HelperToMain>(mainToHelperServer, {
|
||||
strict: {
|
||||
// the channel is shared for other purposes as well so that we do not want to
|
||||
// restrict to only JSONRPC messages
|
||||
@@ -100,7 +100,6 @@ class HelperProcessManager {
|
||||
},
|
||||
channel: new MessageEventChannel(this.#process),
|
||||
});
|
||||
this.rpc = server;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user