Check error and log when closing full text search

This commit is contained in:
Devon Hudson 2023-01-20 11:59:07 -07:00
parent 4dab13a5da
commit 9d52bed9c1
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -596,7 +596,10 @@ func (b *BaseDendrite) WaitForShutdown() {
}
}
if b.Fulltext != nil {
b.Fulltext.Close()
err := b.Fulltext.Close()
if err != nil {
logrus.Warnf("failed to close full text search!")
}
}
logrus.Warnf("Dendrite is exiting now")