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

Commit

Permalink
rename getTime to parseTime
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed May 12, 2021
1 parent 8bbdb3b commit 9e61fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batched/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func storeTime(t time.Time) []byte {
return val
}

func getTime(b []byte) (time.Time, error) {
func parseTime(b []byte) (time.Time, error) {
tns, err := strconv.ParseInt(string(b), 10, 64)
if err != nil {
return time.Time{}, err
Expand Down Expand Up @@ -294,7 +294,7 @@ func (s *BatchProvidingSystem) getLastReprovideTime() (time.Time, error) {
return time.Time{}, fmt.Errorf("could not get last reprovide time")
}

t, err := getTime(val)
t, err := parseTime(val)
if err != nil {
return time.Time{}, fmt.Errorf("could not decode last reprovide time, got %q", string(val))
}
Expand Down

0 comments on commit 9e61fa1

Please sign in to comment.