Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiyukiMineo committed Dec 29, 2024
1 parent 2b470cf commit 8e1899c
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 @@ -56,7 +56,7 @@ func NewDistributedCircuitBreaker[T any](store SharedDataStore, settings Setting
err = e
}
}()

_, err = dcb.getSharedState()
if err == ErrNoSharedState {
err = dcb.setSharedState(dcb.extract())
Expand Down Expand Up @@ -202,7 +202,7 @@ func (dcb *DistributedCircuitBreaker[T]) Execute(req func() (T, error)) (t T, er
err = e
}
}()

dcb.inject(shared)
t, err = dcb.CircuitBreaker.Execute(req)
shared = dcb.extract()
Expand Down

0 comments on commit 8e1899c

Please sign in to comment.