by Robin at 20240524

This commit is contained in:
Leufolium 2024-05-24 22:43:39 +08:00
parent ab4a12073e
commit 0d6a991101
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ func (es *ElasticSearch) CreateStreamerAcct(ctx *gin.Context, streameraccts []*d
for _, streameracct := range streameraccts {
bulk.Add(elastic.NewBulkCreateRequest().Doc(streameracct))
}
_, err := bulk.Do(ctx)
logger.Info("bulk: %v", bulk)
rsp, err := bulk.Do(ctx)
logger.Info("rsp: %v", rsp)
return err
}