1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Fix contextProvider not being in code block (#883)

This commit is contained in:
Markus Lutteropp 2021-07-05 22:05:26 +02:00 committed by GitHub
parent 3a50f35fdb
commit 39b3b07cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,9 +78,8 @@ This is a bit more advanced approach, where you configure a unleash-context prov
The provider typically binds the context to the same thread as the request. If you are using Spring the UnleashContextProvider will typically be a request scoped bean. The provider typically binds the context to the same thread as the request. If you are using Spring the UnleashContextProvider will typically be a request scoped bean.
UnleashContextProvider contextProvider = new MyAwesomeContextProvider();
```java ```java
UnleashContextProvider contextProvider = new MyAwesomeContextProvider();
UnleashConfig config = new UnleashConfig.Builder() UnleashConfig config = new UnleashConfig.Builder()
.appName("java-test") .appName("java-test")
.instanceId("instance x") .instanceId("instance x")