Skip to content

Commit

Permalink
broadcast diffs and handshakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Termina1 committed Dec 27, 2024
1 parent d963e32 commit 5cf44ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,13 +629,13 @@ func (sync *Syncer) Drain(ctx context.Context, recs protocol.Records) (err error
fallthrough

case SendDiff:
broadcast := false
broadcast := true
lit := LastLit(recs)
if lit != 'D' && lit != 'V' {
if lit == 'B' {
broadcast = false
sync.SetDrainState(ctx, SendNone)
} else {
broadcast = true
sync.SetDrainState(ctx, SendLive)
}
}
Expand Down

0 comments on commit 5cf44ed

Please sign in to comment.