Skip to content

Commit

Permalink
[circuitbreaker] add comment
Browse files Browse the repository at this point in the history
Change-Id: I7e6aec424b1211a78e710412bea963fcdaf6b2d7
  • Loading branch information
yudecheng committed May 25, 2021
1 parent 204fb54 commit 015384d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloud/circuitbreaker/breaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type breaker struct {

options Options

now func() time.Time // for test
now func() time.Time // Default value is time.Now, caller may use some high-performance custom time now func here
}

// newBreaker creates a base breaker with a specified options
Expand Down
2 changes: 1 addition & 1 deletion cloud/circuitbreaker/circuitbreaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ type Options struct {
// but will consume more memory
EnableShardP bool

// for test
// Default value is time.Now, caller may use some high-performance custom time now func here
Now func() time.Time
}

Expand Down

0 comments on commit 015384d

Please sign in to comment.