Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a pointer for BaseClient.productCheckMu
I would like to convert a TypedClient to a regular Client; my main use-case for this is so I can use it for the bulk indexer. Converting a TypedClient to Client is fairly straight-forward: func ToClient(tc *elasticsearch.TypedClient) *elasticsearch.Client { c := &elasticsearch.Client{ BaseClient: tc.BaseClient, } c.API = esapi.New(c) return c } Which works, but also gives an error on go vet; literal copies lock value from ns.TypedClient.BaseClient: github.com/elastic/go-elasticsearch/v8.BaseClient contains sync.RWMutex This fixes that.
- Loading branch information