-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duration fix #15
Duration fix #15
Conversation
bpogy
commented
Dec 8, 2023
- MT-2670 Fix for duration format error: "Duration must be in the format: P[nD][T[nH][nM][nS]]"
mpd/duration.go
Outdated
@@ -54,29 +54,16 @@ func (d *Duration) String() string { | |||
if u < uint64(time.Second) { |
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.
Should this be LTE, rather than strictly LT, given that line 59 handles the strictly-equal case?
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.
0 seconds ends-up to be < uint64(time.Second). There is unit test for that scenario, but I'll change it.
@@ -1,3 +1,3 @@ | |||
module github.com/zencoder/go-dash/v3 | |||
|
|||
go 1.16 |
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.
Maybe just leave at 1.16...or no greater than 1.18 (for bakery compatibility).
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.
back to 1.16
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.
Couple of comment/question, otherwise LGTM.