Skip to content

Commit

Permalink
fix: update example for okhttp usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Kolstad committed Jun 24, 2022
1 parent f54e2ff commit 1aa54cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static void main(String[] args) throws InterruptedException {
UnleashConfig config = UnleashConfig.builder().appName("client-example.okhttp")
.customHttpHeader("Authorization", "*:development.afaa5c22450312a6e727af54a163cf7aae0115d9ef83deb175b9d311")
.unleashAPI("http://localhost:4242/api").instanceId("okhttp-example")
.unleashFeatureFetcherFactory(() -> new OkHttpFeatureFetcher())
.unleashFeatureFetcherFactory(OkHttpFeatureFetcher::new)
.synchronousFetchOnInitialisation(true)
.build();
Unleash unleash = new DefaultUnleash(config);
Expand Down

0 comments on commit 1aa54cc

Please sign in to comment.