diff --git a/frontend/src/component/onboarding/dialog/snippets/javascript.md b/frontend/src/component/onboarding/dialog/snippets/javascript.md index 95216eec61d9..4f8234c327f0 100644 --- a/frontend/src/component/onboarding/dialog/snippets/javascript.md +++ b/frontend/src/component/onboarding/dialog/snippets/javascript.md @@ -11,7 +11,7 @@ const unleash = new UnleashClient({ url: '', clientKey: '', appName: 'unleash-onboarding-javascript', - refreshInterval: 1000, + metricsInterval: 1000, }); unleash.start(); diff --git a/frontend/src/component/onboarding/dialog/snippets/python.md b/frontend/src/component/onboarding/dialog/snippets/python.md index 536699e388ce..92a0788d4415 100644 --- a/frontend/src/component/onboarding/dialog/snippets/python.md +++ b/frontend/src/component/onboarding/dialog/snippets/python.md @@ -11,7 +11,7 @@ import asyncio client = UnleashClient( url="", app_name="unleash-onboarding-python", - refresh_interval=1, + metrics_interval=1, custom_headers={'Authorization': ''}) client.initialize_client() diff --git a/frontend/src/component/onboarding/dialog/snippets/react.md b/frontend/src/component/onboarding/dialog/snippets/react.md index ada847d49755..d8aa4cfd41e0 100644 --- a/frontend/src/component/onboarding/dialog/snippets/react.md +++ b/frontend/src/component/onboarding/dialog/snippets/react.md @@ -10,8 +10,8 @@ import { FlagProvider } from '@unleash/proxy-client-react'; const config = { url: '', - clientKey: '', - refreshInterval: 1, // In production use interval of >15s + clientKey: '', + metricsInterval: 1, // In production use interval of >15s appName: 'unleash-onboarding-react', }; diff --git a/frontend/src/component/onboarding/dialog/snippets/rust.md b/frontend/src/component/onboarding/dialog/snippets/rust.md index 365b70a3a11c..f7389bef38dc 100644 --- a/frontend/src/component/onboarding/dialog/snippets/rust.md +++ b/frontend/src/component/onboarding/dialog/snippets/rust.md @@ -41,7 +41,7 @@ async fn main() -> Result<(), Box> { let is_enabled = client.is_enabled(Flags::TestFlag, None, true); println!("\nIs flag enabled: {}\n", is_enabled); - sleep(Duration::from_millis(1000)).await; + sleep(Duration::from_millis(5000)).await; client.stop_poll().await; Ok::<(), Box>(()) diff --git a/frontend/src/component/onboarding/dialog/snippets/swift.md b/frontend/src/component/onboarding/dialog/snippets/swift.md index c6b4757828fe..33457403b193 100644 --- a/frontend/src/component/onboarding/dialog/snippets/swift.md +++ b/frontend/src/component/onboarding/dialog/snippets/swift.md @@ -12,7 +12,7 @@ import UnleashProxyClientSwift var unleash = UnleashProxyClientSwift.UnleashClient( unleashUrl: "", clientKey: "", - refreshInterval: 1, + refreshInterval: 5, appName: "unleash-onboarding-swift", context: [:])