Skip to content

Commit

Permalink
only send sync_id on new streams sync session
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-vk committed Jul 18, 2024
1 parent 67dbbeb commit 75105a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/node/protocol/protocol.pb.go

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

2 changes: 0 additions & 2 deletions core/node/rpc/sync/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ func (syncOp *StreamSyncOperation) Run(
return nil
}

// use the syncID as used between client and subscription node
msg.SyncId = syncOp.SyncID
if err = res.Send(msg); err != nil {
return err
}
Expand Down
1 change: 1 addition & 0 deletions protocol/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ message SyncStreamsRequest {
// sync session.
message SyncStreamsResponse {
// sync_id is the id of the sync session.
// only set when sync_op = SYNC_NEW or SYNC_CLOSE
string sync_id = 1;
// sync_op marks the type of update.
SyncOp sync_op = 2;
Expand Down

0 comments on commit 75105a6

Please sign in to comment.