Merge pull request #10524 from kobergj/RemoveMBreaker

Remove gobreaker lib
This commit is contained in:
kobergj
2024-11-08 15:06:04 +01:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
Bugfix: Remove mbreaker
The circuit breaker is not handle correctly and leads therefore to more issues than it solves. We removed it.
https://github.com/owncloud/ocis/pull/10524
-2
View File
@@ -7,7 +7,6 @@ import (
"os"
mgrpcc "github.com/go-micro/plugins/v4/client/grpc"
mbreaker "github.com/go-micro/plugins/v4/wrapper/breaker/gobreaker"
mtracer "github.com/go-micro/plugins/v4/wrapper/trace/opentelemetry"
"github.com/owncloud/ocis/v2/ocis-pkg/registry"
"github.com/owncloud/ocis/v2/ocis-pkg/shared"
@@ -69,7 +68,6 @@ func NewClient(opts ...ClientOption) (client.Client, error) {
var tlsConfig *tls.Config
cOpts := []client.Option{
client.Registry(reg),
client.Wrap(mbreaker.NewClientWrapper()),
client.Wrap(mtracer.NewClientWrapper(
mtracer.WithTraceProvider(options.tp),
)),