Skip to content

Commit

Permalink
fix: according to feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyChenFight committed Jan 21, 2024
1 parent a8199d2 commit 193fedc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/sink/pulsar.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ func (p *PulsarSink) Apply(changes chan source.Change) chan cursor.Checkpoint {
}

if change.Message.GetKeepAlive() != nil {
if err := p.producer.Flush(); err != nil {
return err
}
committed <- change.Checkpoint
return nil
}
Expand Down

0 comments on commit 193fedc

Please sign in to comment.