Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit d7358f0

Browse files
authored
[ch123129] Fix PollingDataSourceBuilder example. (#299)
1 parent dda1025 commit d7358f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/launchdarkly/sdk/server/integrations/PollingDataSourceBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* change its properties with the methods of this class, and pass it to {@link com.launchdarkly.sdk.server.LDConfig.Builder#dataSource(DataSourceFactory)}:
1919
* <pre><code>
2020
* LDConfig config = new LDConfig.Builder()
21-
* .dataSource(Components.pollingDataSource().pollIntervalMillis(45000))
21+
* .dataSource(Components.pollingDataSource().pollInterval(Duration.ofSeconds(45)))
2222
* .build();
2323
* </code></pre>
2424
* <p>

0 commit comments

Comments
 (0)