Merge pull request #384 from paivagustavo/invalidate-cache-when-changing-context
invalidate cache when switching contextmine
commit
acd7702cdf
|
|
@ -332,6 +332,7 @@ func (a *APIClient) SwitchContextOrDie(ctx string) {
|
|||
}
|
||||
|
||||
if currentCtx != ctx {
|
||||
a.cachedDiscovery = nil
|
||||
a.reset()
|
||||
if err := a.config.SwitchContext(ctx); err != nil {
|
||||
panic(err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue