Skip to content

Commit

Permalink
Merge pull request #33 from xiaomingTom/patch-1
Browse files Browse the repository at this point in the history
修复resolver资源泄漏问题
  • Loading branch information
andrewshan authored Apr 25, 2022
2 parents bd7b966 + 52d7e4a commit 14ee062
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion global.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ func PolarisContext() (api.SDKContext, error) {
if nil != polarisContext {
return polarisContext, nil
}
return api.InitContextByConfig(PolarisConfig())
var err error
polarisContext, err = api.InitContextByConfig(PolarisConfig())
return polarisContext, err
}

// PolarisConfig get or init the global polaris configuration
Expand Down

0 comments on commit 14ee062

Please sign in to comment.