Skip to content

Commit

Permalink
refactor: Optimize code by using built-in constants in the standard l…
Browse files Browse the repository at this point in the history
…ibrary (ethereum-optimism#9963)

Signed-off-by: sellskin <[email protected]>
  • Loading branch information
sellskin authored Apr 9, 2024
1 parent 4c97429 commit d72fb46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions proxyd/pkg/avg-sliding-window/sliding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,7 @@ func TestSlidingWindow_CustomBucket(t *testing.T) {

// ts is a convenient method that must parse a time.Time from a string in format `"2006-01-02 15:04:05"`
func ts(s string) time.Time {
format := "2006-01-02 15:04:05"
t, err := time.Parse(format, s)
t, err := time.Parse(time.DateTime, s)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit d72fb46

Please sign in to comment.