Skip to content

Commit

Permalink
Merge pull request #12 from h-tachikawa/try-auto-publish-to-npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayato Tachikawa committed Sep 22, 2021
2 parents a85a0a9 + c011136 commit b874d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import { useCircuitBreaker } from 'react-use-circuit-breaker'

/**
* Execute callback function that passed by third argument
* when "send" function called 3 times in 5 seconds.
* when send function called 2 times in 5 seconds.
*/
const [send] = useCircuitBreaker(3, 5000, () => {
const [send] = useCircuitBreaker(2, 5000, () => {
throw new Error("The breaker trips!");
});

Expand Down

0 comments on commit b874d54

Please sign in to comment.