Unleash / unleash-client-go

Unleash client SDK for Go
https://docs.getunleash.io
Apache License 2.0
138 stars 55 forks source link

fix: GetVariant does not accept custom context #87

Closed ivarconr closed 3 years ago

ivarconr commented 3 years ago

In client.go#L302 we should also apply user provided context fields to the getVariant function:

Something like this

ctx := uc.staticContext
if opts.ctx != nil {
    ctx = ctx.Override(*opts.ctx)
}
FredrikOseberg commented 3 years ago

Fixed in #88