Change the default reindex debounce duration to 1s.

Also make it configurable using an env var.
This commit is contained in:
André Duffeck
2022-11-03 12:47:02 +01:00
parent 5602668634
commit 12bdf29ac4
6 changed files with 12 additions and 9 deletions

View File

@@ -29,8 +29,9 @@ func DefaultConfig() *config.Config {
Service: config.Service{
Name: "search",
},
Datapath: path.Join(defaults.BaseDataPath(), "search"),
Reva: shared.DefaultRevaConfig(),
Datapath: path.Join(defaults.BaseDataPath(), "search"),
DebounceDuration: 1000,
Reva: shared.DefaultRevaConfig(),
Events: config.Events{
Endpoint: "127.0.0.1:9233",
Cluster: "ocis-cluster",