FB-1646 : UPdated code post code review

This commit is contained in:
HHans09 2022-09-22 11:11:46 -04:00 committed by Christopher Lowenthal
parent c74509c578
commit 321fa24831

View file

@ -232,6 +232,11 @@ func (r *Record) Commit(ctx context.Context) error {
p = x.Partition
}
_, err := r.src.CommitMessages(r.src.highmarks)
if err != nil {
return errors.Wrap(err, "failed to commit messages")
}
r.src.spool = remaining
r.src.spoolBase = idx
return nil
@ -292,7 +297,8 @@ func (s *Source) Open() error {
return err
}
s.Log.Debugf(buf.String())
stv, iv := confluent.LibraryVersion()
s.Log.Debugf("version:(%v) %v", iv, stv)
}
cl, err := confluent.NewConsumer(s.ConfigMap)
if err != nil {