-
Notifications
You must be signed in to change notification settings - Fork 107
Conversation
There are some formatting issues which make the circleCI tests fail |
schema.Point{Val: s.value, Ts: s.from}, | ||
schema.Point{Val: s.value, Ts: s.from + uint32((s.to-s.from)/2.0)}, | ||
schema.Point{Val: s.value, Ts: s.to}, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is guaranteed at this point (due to prior validation) that from < to.
however, from may equal to -1, which would result in duplicate timestamps. this is an edge case, and causes graphite to crash, but we may as well handle it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks pretty good. just one comment, and as the CI message says, you'll need run gofmt.
You might want to run something like find . -name '*.go' -not -path './vendor/*' | xargs gofmt -w -s
, which takes care of everything
I added bloomberg@38e1c21 10 minutes ago, but not showing up here. There was some wonky stuff that happened over weekend where the original branch got deleted, so if the commit doesn't show up here by EOD, I'll close this PR and make a new one. |
closing per comment above ^ - will create new PR |
Describe your changes
Adds the constantLine function
Testing performed
Test files added with mtcmptest used locally