mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 01:10:20 -06:00
fix(ocis-pkg/service): remove gobreaker lib
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
5
changelog/unreleased/remove-mbreaker.md
Normal file
5
changelog/unreleased/remove-mbreaker.md
Normal 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
|
||||
@@ -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),
|
||||
)),
|
||||
|
||||
Reference in New Issue
Block a user