mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
FB-1646 Removed Debugf messages that does not make sense
This commit is contained in:
parent
93c66601be
commit
ad7a41fa06
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue