Skip to content

Commit

Permalink
clarify ProcessRequestCounter comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Zedran committed Jan 23, 2023
1 parent 7f5f083 commit 0362fc6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ func (rc *RequestCounter) SetExpirationTime() {
rc.Expires = et.Unix()
}

/* Returns the remaining number of requests stored within cache file. */
/* Reads the cache file, subtracts one from RequestCounter and
* returns the remaining number of requests. Used on successful
* call to OpenUV API.
*/
func ProcessRequestCounter(s *Settings) (int64, error) {
rc, err := ReadRequestCounter()
if err != nil || rc.Expired() {
Expand Down

0 comments on commit 0362fc6

Please sign in to comment.