Skip to content

Commit 30f4e7d

Browse files
authored
fix: public flagd protocol (#130)
Signed-off-by: Todd Baert <[email protected]> Signed-off-by: Todd Baert <[email protected]>
1 parent 840281e commit 30f4e7d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

providers/flagd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ A feature flag daemon with a Unix philosophy.
2020
The `FlagdProvider` communicates with flagd via the gRPC protocol. Instantiate a new FlagdProvider instance, and configure the OpenFeature SDK to use it:
2121

2222
```java
23-
FlagdProvider provider = new FlagdProvider("http", "localhost", 8013);
23+
FlagdProvider provider = new FlagdProvider(Protocol.HTTP, "localhost", 8013);
2424
OpenFeatureAPI.getInstance().setProvider(provider);
2525
```
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package dev.openfeature.contrib.providers.flagd;
22

3-
enum Protocol {
3+
/**
4+
* Protocol for gRPC connect.
5+
*/
6+
public enum Protocol {
47
HTTP,
58
HTTPS
69
}

0 commit comments

Comments
 (0)