Skip to content

Commit

Permalink
pear-ipc refactor (#417)
Browse files Browse the repository at this point in the history
* pear-ipc refactor

* updated package-lock

* updated pear-ipc exports
  • Loading branch information
rafapaezbas authored Nov 8, 2024
1 parent 9c2923d commit 4beac34
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ crasher('cli', SWAP)
cli()

async function cli () {
const ipc = new IPC({
const ipc = new IPC.Client({
lock: PLATFORM_LOCK,
socketPath: SOCKET_PATH,
connectTimeout: CONNECT_TIMEOUT,
Expand Down
2 changes: 1 addition & 1 deletion gui/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ class PearGUI extends ReadyResource {
constructor ({ socketPath, connectTimeout, tryboot, state }) {
super()
this.state = state
this.ipc = new IPC({
this.ipc = new IPC.Client({
lock: constants.PLATFORM_LOCK,
socketPath,
connectTimeout,
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"paparam": "^1.6.0",
"pear-changelog": "^1.0.1",
"pear-interface": "^1.0.0",
"pear-ipc": "^2.2.8",
"pear-ipc": "^3.0.0",
"pear-link": "^2.0.1",
"pear-updater": "^3.1.0",
"pear-updater-bootstrap": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion subsystems/sidecar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Sidecar extends ReadyResource {
this.corestore = corestore
this.gunk = gunk

this.ipc = new IPC({
this.ipc = new IPC.Server({
handlers: this,
lock: PLATFORM_LOCK,
socketPath: SOCKET_PATH
Expand Down
2 changes: 1 addition & 1 deletion test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class OperationError extends Error {
}
}

class Helper extends IPC {
class Helper extends IPC.Client {
static Rig = Rig
static tmp = tmp
static PLATFORM_DIR = PLATFORM_DIR
Expand Down

0 comments on commit 4beac34

Please sign in to comment.