Merge pull request #2332 from AllenZMC/improve_search
Clear conflict between variable `delete` and builtin function
This commit is contained in:
commit
c77f416960
|
@ -149,12 +149,12 @@ func (os *OpenSearch) delete(obj interface{}) {
|
|||
return
|
||||
}
|
||||
|
||||
delete := opensearchapi.DeleteRequest{
|
||||
deleteRequest := opensearchapi.DeleteRequest{
|
||||
Index: indexName,
|
||||
DocumentID: string(us.GetUID()),
|
||||
}
|
||||
|
||||
resp, err := delete.Do(context.Background(), os.client)
|
||||
resp, err := deleteRequest.Do(context.Background(), os.client)
|
||||
if err != nil {
|
||||
klog.Errorf("cannot delete: %v", err)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue