This is an automated email from the ASF dual-hosted git repository. LinkinStars pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/answer.git
commit e3831b6f525a17ce26e3a4d6c69076e96e2f9c59 Author: hgaol <[email protected]> AuthorDate: Wed Apr 22 23:31:07 2026 +0800 refactor: streamline plugin initialization by removing redundant search syncer registration --- internal/service/plugin_common/plugin_common_service.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/service/plugin_common/plugin_common_service.go b/internal/service/plugin_common/plugin_common_service.go index b3674a23..2c1a72fd 100644 --- a/internal/service/plugin_common/plugin_common_service.go +++ b/internal/service/plugin_common/plugin_common_service.go @@ -183,11 +183,7 @@ func (ps *PluginCommonService) initPluginData() { }) } - // register syncers for search and vector search plugins on startup - _ = plugin.CallSearch(func(search plugin.Search) error { - search.RegisterSyncer(context.Background(), search_sync.NewPluginSyncer(ps.data)) - return nil - }) + // register syncer for vector search plugins on startup _ = plugin.CallVectorSearch(func(vs plugin.VectorSearch) error { vs.RegisterSyncer(context.Background(), vector_search_sync.NewPluginSyncer(ps.data)) return nil
