Skip to content

Commit

Permalink
storage: minor readability improvement
Browse files Browse the repository at this point in the history
cc @nvanbenschoten

I thought I had addressed this elsewhere already, but apparently not.

Release note: None
  • Loading branch information
tbg committed Dec 23, 2017
1 parent ed342d1 commit 9e519e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/gc_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func makeGCQueueScoreImpl(
// Treat a zero TTL as a one-second TTL, which avoids a priority of infinity
// and otherwise behaves indistinguishable given that we can't possibly hope
// to GC values faster than that.
if r.TTL == 0 {
if r.TTL <= time.Second {
r.TTL = time.Second
}

Expand Down

0 comments on commit 9e519e4

Please sign in to comment.