mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-08 06:33:09 -06:00
Create FTS only in monolith or syncapi
This commit is contained in:
parent
3f001e7cc0
commit
04139328d3
|
|
@ -149,7 +149,8 @@ func NewBaseDendrite(cfg *config.Dendrite, componentName string, options ...Base
|
||||||
}
|
}
|
||||||
|
|
||||||
var fts *fulltext.Search
|
var fts *fulltext.Search
|
||||||
if cfg.SyncAPI.Fulltext.Enabled {
|
isSyncOrMonolith := componentName == "syncapi" || isMonolith
|
||||||
|
if cfg.SyncAPI.Fulltext.Enabled && isSyncOrMonolith {
|
||||||
fts, err = fulltext.New(cfg.SyncAPI.Fulltext)
|
fts, err = fulltext.New(cfg.SyncAPI.Fulltext)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.WithError(err).Panicf("failed to create full text")
|
logrus.WithError(err).Panicf("failed to create full text")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue