Skip to content

Commit 61aaeeb

Browse files
committed
refactor: streamline plugin initialization by removing redundant search syncer registration
1 parent dfca07c commit 61aaeeb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

internal/service/plugin_common/plugin_common_service.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,7 @@ func (ps *PluginCommonService) initPluginData() {
183183
})
184184
}
185185

186-
// register syncers for search and vector search plugins on startup
187-
_ = plugin.CallSearch(func(search plugin.Search) error {
188-
search.RegisterSyncer(context.Background(), search_sync.NewPluginSyncer(ps.data))
189-
return nil
190-
})
186+
// register syncer for vector search plugins on startup
191187
_ = plugin.CallVectorSearch(func(vs plugin.VectorSearch) error {
192188
vs.RegisterSyncer(context.Background(), vector_search_sync.NewPluginSyncer(ps.data))
193189
return nil

0 commit comments

Comments
 (0)