Clear conflict between variable `delete` and builtin function

Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
This commit is contained in:
AllenZMC 2022-08-04 23:24:13 +08:00
parent 54752ed626
commit 177e9e604c
1 changed files with 2 additions and 2 deletions

View File

@ -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