Skip to content

Commit 4901d00

Browse files
authored
docs: fix reconiliation termination override snippet (#2946)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent 2dcb231 commit 4901d00

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/content/en/docs/getting-started/patterns-best-practices.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,5 @@ The `stopOnInformerErrorDuringStartup` setting affects [cache sync timeout](http
112112
You can provide sufficient time for the reconciler to process and complete ongoing events before shutting down. Simply set an appropriate duration value for `reconciliationTerminationTimeout` using `ConfigurationServiceOverrider`.
113113

114114
```java
115-
final var overridden = new ConfigurationServiceOverrider(config)
116-
.withReconciliationTerminationTimeout(Duration.ofSeconds(5));
117-
118-
final var operator = new Operator(overridden);
115+
final var operator = new Operator(override -> override.withReconciliationTerminationTimeout(Duration.ofSeconds(5)));
119116
```

0 commit comments

Comments
 (0)