Skip to content

Commit

Permalink
chore(api): update protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
heapwolf committed Aug 8, 2024
1 parent 55cfe7f commit f938623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/latica/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ export class Peer {

await this.mcast(packet)
this._onDebug(`-> RESEND (packetId=${packetId})`)
if (this.onState) this.onState(this.getState())
if (this.onState) this.onState()
}
}

Expand Down Expand Up @@ -946,7 +946,7 @@ export class Peer {
})

this._onDebug(`-> JOIN (clusterId=${cid.slice(0, 6)}, subclusterId=${scid.slice(0, 6)}, clock=${packet.clock}/${this.clock})`)
if (this.onState) this.onState(this.getState())
if (this.onState) this.onState()

this.mcast(packet)
this.gate.set(packet.packetId.toString('hex'), 1)
Expand Down

0 comments on commit f938623

Please sign in to comment.