Skip to content

Commit

Permalink
improved gitignore, removed search/structs.go
Browse files Browse the repository at this point in the history
  • Loading branch information
k4lizen committed Sep 26, 2023
1 parent 21b9ed4 commit 503c714
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ brzaguza.*

.vscode/*

src/engines/yandex/site/*
src/engines/etools/site/*
src/engines/swisscows/site/*
src/engines/metager/site/*
src/engines/presearch/site/*
src/engines/*/site/*
!src/engines/_engines_test

logdump/*.html
log/*.log
Expand Down
3 changes: 3 additions & 0 deletions src/search/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ func PerformSearch(query string, options engines.Options, config *config.Config)
return results
}

// engine_searcher, NewEngineStarter() use this.
type EngineSearch func(context.Context, string, *bucket.Relay, engines.Options, config.Settings) error

func runEngines(engineMap map[string]config.Engine, query string, worker *conc.WaitGroup, relay *bucket.Relay, options engines.Options) {
log.Info().Msgf("Enabled engines: %v", config.EnabledEngines)

Expand Down
11 changes: 0 additions & 11 deletions src/search/structs.go

This file was deleted.

0 comments on commit 503c714

Please sign in to comment.