Skip to content

Commit

Permalink
Updates to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolivieri committed Jun 23, 2017
1 parent 3e40f6b commit b2159bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ If the function you are circuit breaking makes an asynchronous call(s) and the e

1. Define a fallback function with the signature `(<BreakerError, (fallbackArg1, fallbackArg2,...)>) -> Void`:
```swift
func myFallback (err: BreakerError, msg: String) {
func myFallback(err: BreakerError, msg: String) {
// The fallback will be called if the request does not return before the specified timeout
// or if the CircuitBreaker is currently in Open state and set to fail fast.
// Client code can use the fallback function to do alternate processing, such as show an error page.
Expand Down Expand Up @@ -82,7 +82,7 @@ Full Implementation:
```swift
...

func myFallback (err: BreakerError, msg: String) {
func myFallback(err: BreakerError, msg: String) {
// The fallback will be called if the request does not return before the specified timeout
// or if the CircuitBreaker is currently in Open state and set to fail fast.
// Client code can use the fallback function to do alternate processing, such as show an error page.
Expand Down Expand Up @@ -110,7 +110,7 @@ breaker.run(commandArgs: (a: 15, b: 35), fallbackArgs: (msg: "Something went wro

1. Define a fallback function with the signature `(<BreakerError, (fallbackArg1, fallbackArg2,...)>) -> Void`:
```swift
func myFallback (err: BreakerError, msg: String) {
func myFallback(err: BreakerError, msg: String) {
// The fallback will be called if the request does not return before the specified timeout
// or if the CircuitBreaker is currently in Open state and set to fail fast.
Log.verbose("Error: \(error)")
Expand Down Expand Up @@ -175,7 +175,7 @@ Full Implementation:
```swift
...

func myFallback (err: BreakerError, msg: String) {
func myFallback(err: BreakerError, msg: String) {
// The fallback will be called if the request does not return before the specified timeout
// or if the CircuitBreaker is currently in Open state and set to fail fast.
Log.verbose("Error: \(error)")
Expand Down

0 comments on commit b2159bb

Please sign in to comment.