Skip to content

Commit 457b28c

Browse files
committed
fix(Operator): Fixed the operator to use IOptionsMonitor instead of IOptions to access the OperatorOptions, thus making sure the proper resource-based configuration
Signed-off-by: Charles d'Avernas <charles.davernas@neuroglia.io>
1 parent 090fdb0 commit 457b28c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/operator/Synapse.Operator/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
services.Configure<OperatorOptions>(context.Configuration);
3131
services.AddSingleton(provider =>
3232
{
33-
var options = provider.GetRequiredService<IOptions<OperatorOptions>>().Value;
33+
var options = provider.GetRequiredService<IOptionsMonitor<OperatorOptions>>().CurrentValue;
3434
return Options.Create(options.Runner);
3535
});
3636
services.AddLogging(builder =>

0 commit comments

Comments
 (0)