Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
roll back changes that shouldn't be in this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzoh committed Feb 26, 2020
1 parent ef8e98f commit 579cf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish/kafka/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@ func (m *mtPublisher) Publish(metrics []*schema.MetricData) error {
if m.autoInterval {
_, s := m.schemas.Match(metric.Name, 0)
metric.Interval = s.Retentions.Rets[0].SecondsPerPoint
metric.SetId()
} else {
log.Error("interval is 0 but can't deduce interval automatically. this should never happen")
return errors.New("need to deduce interval but cannot")
}
}
metric.SetId()

isMD := false
isMP := false
Expand Down

0 comments on commit 579cf25

Please sign in to comment.