Commit 5f738b70 authored by 谢宇轩's avatar 谢宇轩 😅

添加ES客户端协程池,修改错误

parent daa6d25a
......@@ -43,7 +43,7 @@ func CloseMessageChan() {
func MatedateSender(ctx context.Context, esClient *elastic.Client) {
wp := &WorkPool{
wp := &ESWorkPool{
WorkerFunc: func(matedatas []*Matedata) bool {
bulkRequest := esClient.Bulk()
for _, m := range matedatas {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment