Skip to content

Commit

Permalink
Merge pull request #70 from launchdarkly/eb/go-client-4.3.0
Browse files Browse the repository at this point in the history
update Go client to 4.3.0
  • Loading branch information
eli-darkly authored Aug 27, 2018
2 parents 8c4baee + cdc7891 commit 7c6053e
Show file tree
Hide file tree
Showing 10 changed files with 711 additions and 193 deletions.
4 changes: 2 additions & 2 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,14 +706,14 @@ func evaluateAllShared(w http.ResponseWriter, req *http.Request, valueOnly bool)
response := make(map[string]interface{}, len(items))
for _, item := range items {
if flag, ok := item.(*ld.FeatureFlag); ok {
value, variation, _ := flag.Evaluate(*user, store)
detail, _ := flag.EvaluateDetail(*user, store, false)
var result interface{}
if valueOnly {
result = value
result = detail.Value
} else {
result = evalXResult{
Value: value,
Variation: variation,
Value: detail.Value,
Variation: detail.VariationIndex,
Version: flag.Version,
TrackEvents: flag.TrackEvents,
DebugEventsUntilDate: flag.DebugEventsUntilDate,
Expand Down
1 change: 1 addition & 0 deletions vendor/gopkg.in/launchdarkly/go-client.v4/.golangci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions vendor/gopkg.in/launchdarkly/go-client.v4/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

309 changes: 309 additions & 0 deletions vendor/gopkg.in/launchdarkly/go-client.v4/evaluation_detail.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions vendor/gopkg.in/launchdarkly/go-client.v4/events.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7c6053e

Please sign in to comment.