@@ -55,7 +55,7 @@ The easiest way to connect your Spring Boot application to App Configuration is
55
55
<dependency >
56
56
<groupId >com.microsoft.azure</groupId >
57
57
<artifactId >spring-cloud-azure-feature-management-web</artifactId >
58
- <version >1.1.1 </version >
58
+ <version >1.1.2 </version >
59
59
</dependency >
60
60
```
61
61
@@ -65,7 +65,7 @@ The easiest way to connect your Spring Boot application to App Configuration is
65
65
<dependency >
66
66
<groupId >com.microsoft.azure</groupId >
67
67
<artifactId >spring-cloud-azure-feature-management-web</artifactId >
68
- <version >1.2.1 </version >
68
+ <version >1.2.2 </version >
69
69
</dependency >
70
70
```
71
71
@@ -103,8 +103,7 @@ The basic pattern of feature management is to first check if a feature flag is s
103
103
` ` ` java
104
104
private FeatureManager featureManager;
105
105
...
106
- if (featureManager.isEnabledAsync("feature-a"))
107
- {
106
+ if (featureManager.isEnabledAsync("feature-a").block()) {
108
107
// Run the following code
109
108
}
110
109
` ` `
@@ -153,7 +152,7 @@ public class FeatureFlagFilter implements Filter {
153
152
@Override
154
153
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
155
154
throws IOException, ServletException {
156
- if(!featureManager.isEnabled ("feature-a")) {
155
+ if(!featureManager.isEnabledAsync ("feature-a").block( )) {
157
156
chain.doFilter(request, response);
158
157
return;
159
158
}
0 commit comments