Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
da440dil committed Aug 7, 2019
1 parent 58b5811 commit f49012b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ c, _ := counter.New(1, time.Millisecond*100)
if v, err := c.Count("key"); err != nil {
if e, ok := err.(locker.TTLError); ok {
// Use e.TTL() if need
} else {
// Handle err
}
} else {
// Counter value equals 1
Expand Down

0 comments on commit f49012b

Please sign in to comment.