Skip to content

Commit

Permalink
rename onSync to onReceive
Browse files Browse the repository at this point in the history
  • Loading branch information
VladBrok committed Sep 1, 2023
1 parent 5f6f10c commit 34e9bd1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions base-server/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import type {
Log,
LogStore,
Meta,
ReceiveCallback,
ServerConnection,
SyncCallback,
TestTime
} from '@logux/core'
import type {
Expand Down Expand Up @@ -737,7 +737,7 @@ export class BaseServer<
*/
nodeIds: Map<string, ServerClient>

onSync: SyncCallback
onReceive: ReceiveCallback

/**
* Server options.
Expand Down
2 changes: 1 addition & 1 deletion base-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ export class BaseServer {
}
}

onSync(processAction, action, meta) {
onReceive(processAction, action, meta) {
if (this.actionToQueue.has(meta.id)) {
return
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
},
"dependencies": {
"@logux/actions": "^0.3.1",
"@logux/core": "VladBrok/core#feat/54",
"JSONStream": "^1.3.5",
"@logux/core": "VladBrok/core#feat/54",
"cookie": "^0.5.0",
"dotenv": "^16.3.1",
"fast-glob": "^3.3.1",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion server-client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ServerClient {
auth: this.auth.bind(this),
inFilter: this.filter.bind(this),
inMap: this.inMap.bind(this),
onSync: app.onSync.bind(app),
onReceive: app.onReceive.bind(app),
outMap: this.outMap.bind(this),
ping: app.options.ping,
subprotocol: app.options.subprotocol,
Expand Down

0 comments on commit 34e9bd1

Please sign in to comment.