Skip to content

Commit

Permalink
fix: public flagd protocol (#130)
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Baert <toddbaert@gmail.com>

Signed-off-by: Todd Baert <toddbaert@gmail.com>
  • Loading branch information
toddbaert authored Nov 16, 2022
1 parent 840281e commit 30f4e7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion providers/flagd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ A feature flag daemon with a Unix philosophy.
The `FlagdProvider` communicates with flagd via the gRPC protocol. Instantiate a new FlagdProvider instance, and configure the OpenFeature SDK to use it:

```java
FlagdProvider provider = new FlagdProvider("http", "localhost", 8013);
FlagdProvider provider = new FlagdProvider(Protocol.HTTP, "localhost", 8013);
OpenFeatureAPI.getInstance().setProvider(provider);
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package dev.openfeature.contrib.providers.flagd;

enum Protocol {
/**
* Protocol for gRPC connect.
*/
public enum Protocol {
HTTP,
HTTPS
}

0 comments on commit 30f4e7d

Please sign in to comment.