From 8e1899cd2ea238c8f33743a055d0a61080cdd6d7 Mon Sep 17 00:00:00 2001 From: Yoshiyuki Mineo Date: Sun, 29 Dec 2024 15:07:43 +0900 Subject: [PATCH] gofmt --- v2/distributed_gobreaker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/distributed_gobreaker.go b/v2/distributed_gobreaker.go index 244b6c5..cc530c9 100644 --- a/v2/distributed_gobreaker.go +++ b/v2/distributed_gobreaker.go @@ -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()) @@ -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()