Skip to content

Commit

Permalink
Merge pull request #993 from bruth/patch-1
Browse files Browse the repository at this point in the history
Use native time.Time.Equal method for equality check
  • Loading branch information
derekcollison authored Jun 7, 2022
2 parents fe748b3 + 5a64802 commit 8015437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js.go
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ func checkConfig(s, u *ConsumerConfig) error {
if u.OptStartSeq > 0 && u.OptStartSeq != s.OptStartSeq {
return makeErr("optional start sequence", u.OptStartSeq, s.OptStartSeq)
}
if u.OptStartTime != nil && !u.OptStartTime.IsZero() && u.OptStartTime != s.OptStartTime {
if u.OptStartTime != nil && !u.OptStartTime.IsZero() && !(*u.OptStartTime).Equal(*s.OptStartTime) {
return makeErr("optional start time", u.OptStartTime, s.OptStartTime)
}
if u.AckPolicy != ackPolicyNotSet && u.AckPolicy != s.AckPolicy {
Expand Down

0 comments on commit 8015437

Please sign in to comment.