Skip to content

Commit 79eff80

Browse files
committed
Implement new getImpactMetrics method for fake unleash implementation
Fake unleash implementation is only used in unleash demo app. The new method is not relevant, therefore just returns `null`.
1 parent 3b4fb52 commit 79eff80

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

demo-apps/chaos-monkey-demo-app-unleash-toggles/src/main/java/com/example/chaos/monkey/toggledemo/UserAwareFakeUnleash.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2021-2025 the original author or authors.
2+
* Copyright 2021-2026 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
2020
import io.getunleash.Unleash;
2121
import io.getunleash.UnleashContext;
2222
import io.getunleash.UnleashContextProvider;
23+
import io.getunleash.impactmetrics.MetricsAPI;
2324
import io.getunleash.variant.Variant;
2425

2526
import java.util.function.BiPredicate;
@@ -87,4 +88,9 @@ public Variant getVariant(String s, Variant variant) {
8788
public MoreOperations more() {
8889
return null;
8990
}
91+
92+
@Override
93+
public MetricsAPI getImpactMetrics() {
94+
return null;
95+
}
9096
}

0 commit comments

Comments
 (0)