Add server side transaction origin

This commit is contained in:
kkeybbs 2023-02-22 14:05:23 +08:00 committed by GitHub
parent d98ea1fb83
commit 6c945d3ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,7 @@ const messageListener = (conn, doc, message) => {
switch (messageType) { switch (messageType) {
case messageSync: case messageSync:
encoding.writeVarUint(encoder, messageSync) encoding.writeVarUint(encoder, messageSync)
syncProtocol.readSyncMessage(decoder, encoder, doc, null) syncProtocol.readSyncMessage(decoder, encoder, doc, conn)
// If the `encoder` only contains the type of reply message and no // If the `encoder` only contains the type of reply message and no
// message, there is no need to send the message. When `encoder` only // message, there is no need to send the message. When `encoder` only