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