Clear conflict between variable `delete` and builtin function
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
This commit is contained in:
parent
54752ed626
commit
177e9e604c
|
@ -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