func DeleteVideo(w http.ResponseWriter,r *http.Request,p httprouter.Params){
if !ValidateUser(w,r){
return
}
vid:=p.ByName("vid-id")
err:=dbops.DeleteVideoInfo(vid)
if err!=nil{
log.Printf("error in DeleteVideo: %s",err)
sendErrorResponse(w,defs.ErrorDBError)
return
}
go utils.SendDeleteVideoRequest(vid) //加入3秒后这里失败了怎么办,下边一行早已经发出了删除成功的提示。
sendNormalResponse(w,"",204)
}