mirror of
https://github.com/umap-project/umap.git
synced 2025-05-02 04:52:22 +02:00
chore: properly consumme lastKnownHLC on list operations call
This commit is contained in:
parent
471abe1f1b
commit
6caf4c3ed1
1 changed files with 6 additions and 2 deletions
|
@ -183,9 +183,13 @@ export class SyncEngine {
|
||||||
* @param {string} payload.sender the uuid of the requesting peer
|
* @param {string} payload.sender the uuid of the requesting peer
|
||||||
* @param {string} payload.latestKnownHLC the latest known HLC of the requesting peer
|
* @param {string} payload.latestKnownHLC the latest known HLC of the requesting peer
|
||||||
*/
|
*/
|
||||||
onListOperationsRequest({ sender, lastKnownHLC }) {
|
onListOperationsRequest({ sender, message }) {
|
||||||
|
debug(
|
||||||
|
`received operations request from peer ${sender} (since ${message.lastKnownHLC})`
|
||||||
|
)
|
||||||
|
|
||||||
this.sendToPeer(sender, 'ListOperationsResponse', {
|
this.sendToPeer(sender, 'ListOperationsResponse', {
|
||||||
operations: this._operations.getOperationsSince(lastKnownHLC),
|
operations: this._operations.getOperationsSince(message.lastKnownHLC),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue