FB-1646 Removed Debugf messages that does not make sense

This commit is contained in:
HHans09 2022-09-21 13:57:21 -04:00 committed by Kasey Rodgers
parent 93c66601be
commit ad7a41fa06

View file

@ -210,7 +210,7 @@ func (r *Record) Commit(ctx context.Context) error {
return errors.New("cannot commit a record that has already been committed")
}
section, remaining := r.src.spool[:idx-base], r.src.spool[idx-base:]
sort.Slice(section, func(i, j int) bool {
if *section[i].Topic != *section[j].Topic {
return *section[i].Topic < *section[j].Topic
@ -231,7 +231,7 @@ func (r *Record) Commit(ctx context.Context) error {
s = *x.Topic
p = x.Partition
}
r.src.spool = remaining
r.src.spoolBase = idx
return nil
@ -299,13 +299,11 @@ func (s *Source) Open() error {
return errors.Wrap(err, "new consumer")
}
err = cl.SubscribeTopics(s.Topics, nil)
if err != nil {
return errors.Wrap(err, "subscribe topics")
}
s.client = cl
s.opened = true
s.wg.Add(1)