Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Oct 2, 2024
1 parent 61210bd commit 11640ed
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const unleash = new UnleashClient({
url: '<YOUR_API_URL>',
clientKey: '<YOUR_API_TOKEN>',
appName: 'unleash-onboarding-javascript',
refreshInterval: 1000,
metricsInterval: 1000,
});

unleash.start();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import asyncio
client = UnleashClient(
url="<YOUR_API_URL>",
app_name="unleash-onboarding-python",
refresh_interval=1,
metrics_interval=1,
custom_headers={'Authorization': '<YOUR_API_TOKEN>'})

client.initialize_client()
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/component/onboarding/dialog/snippets/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { FlagProvider } from '@unleash/proxy-client-react';

const config = {
url: '<YOUR_API_URL>',
clientKey: '<YOUR_API_TOKEN>',
refreshInterval: 1, // In production use interval of >15s
clientKey: '<YOUR_API_TOKEN>',
metricsInterval: 1, // In production use interval of >15s
appName: 'unleash-onboarding-react',
};

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/component/onboarding/dialog/snippets/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
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<dyn Error + Send + Sync>>(())
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/component/onboarding/dialog/snippets/swift.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import UnleashProxyClientSwift
var unleash = UnleashProxyClientSwift.UnleashClient(
unleashUrl: "<YOUR_API_URL>",
clientKey: "<YOUR_API_TOKEN>",
refreshInterval: 1,
refreshInterval: 5,
appName: "unleash-onboarding-swift",
context: [:])

Expand Down

0 comments on commit 11640ed

Please sign in to comment.