Skip to content

Commit

Permalink
Merge pull request #50 from Xabaril/fix/circuit-braker-client-issue
Browse files Browse the repository at this point in the history
Invalid Circuit breaker registration
  • Loading branch information
unaizorrilla authored Jul 4, 2023
2 parents 2f6bdb4 + 8989380 commit 3711334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<PropertyGroup Label="Balea Versions">
<Balea>7.1.0$(VersionSuffix)</Balea>
<Balea>7.2.0$(VersionSuffix)</Balea>
</PropertyGroup>

<PropertyGroup Label="Package Dependencies">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ public static IBaleaBuilder AddApiStore(this IBaleaBuilder builder, Action<Store
client.DefaultRequestHeaders.Add(API_KEY_HEADER, options.ApiKey);
})
.AddHttpMessageHandler<LoggingHandler>()
.AddTransientHttpErrorPolicy(p => p.RetryAsync(options.RetryCount))
.AddTransientHttpErrorPolicy(p =>
p.CircuitBreakerAsync(options.HandledEventsAllowedBeforeBreaking, TimeSpan.FromSeconds(options.DurationOfBreak)));
.AddTransientHttpErrorPolicy(p => p.RetryAsync(options.RetryCount));

builder.Services.AddScoped<IRuntimeAuthorizationServerStore, ApiRuntimeAuthorizationServerStore>();

Expand Down

0 comments on commit 3711334

Please sign in to comment.