Skip to content

Commit

Permalink
Update distributed_gobreaker.go
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiyukiMineo authored Dec 28, 2024
1 parent d3a2319 commit 09dab52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2/distributed_gobreaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ func NewDistributedCircuitBreaker[T any](ctx context.Context, store SharedDataSt
store: store,
}

state, err := dcb.getSharedState(ctx)
_, err := dcb.getSharedState(ctx)
if err == ErrNoSharedState {
state = SharedState{
state := SharedState{
State: dcb.state,
Generation: dcb.generation,
Counts: dcb.counts,
Expand Down

0 comments on commit 09dab52

Please sign in to comment.