Commit c15b60f7 authored by Wade's avatar Wade

update grap param

parent 80e1d112
......@@ -466,14 +466,10 @@ func (ds *docStore) Index(ctx context.Context, req *ai.IndexerRequest) error {
fmt.Println("document ok", string(body), idx)
// Sync document
syncOk, err := ds.client.SyncDocuments(spaceId, []string{idx})
_, err = ds.client.SyncDocuments(spaceId, []string{idx})
if err != nil {
return fmt.Errorf("sync document %d: %w", i+1, err)
}
if syncOk {
return fmt.Errorf("sync document %d failed.", i+1, )
}
fmt.Println("sync ok", syncOk)
}
return nil
......
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