Skip to content

Commit

Permalink
Appease staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Mar 15, 2024
1 parent 67495ed commit 057a88a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func main() {
panic(err) // TODO: Handle error
} else {
// continue processing normally
fmt.Println("Size after add:", bucket.Value())
}

// Inspect the bucket
Expand All @@ -40,8 +41,8 @@ func main() {
// right now would not cause the size to decrease.
//
// If for some reason you'd like to leave the drain status unchanged, set resetDrain to false.
fmt.Println("Size after Set:", bucket.Value()) // will not drain, even if a minute had passed
}
fmt.Println("Size after Set:", bucket.Value()) // will not drain, even if a minute had passed

// Expand the bucket in any direction
bucket.Capacity = 700
Expand Down

0 comments on commit 057a88a

Please sign in to comment.