add fastexact to main
This commit is contained in:
@@ -228,6 +228,9 @@ func (mock mockFastExactDoer) doRequest(req *http.Request) (*http.Response, erro
|
||||
return nil, errors.New("bad query: zip code empty")
|
||||
}
|
||||
b, err := ioutil.ReadFile("./testdata/fastexact_search.xml")
|
||||
if err != nil {
|
||||
b, err = ioutil.ReadFile("./broker/testdata/fastexact_search.xml")
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
3
main.go
3
main.go
@@ -315,7 +315,8 @@ func once() error {
|
||||
func getJobs() ([]broker.Job, error) {
|
||||
states := config.AllStates()
|
||||
ntg := broker.NewNTGVision()
|
||||
brokers := []broker.Broker{ntg}
|
||||
fe := broker.NewFastExact()
|
||||
brokers := []broker.Broker{ntg, fe}
|
||||
jobs := []broker.Job{}
|
||||
for _, broker := range brokers {
|
||||
somejobs, err := broker.Search(states)
|
||||
|
||||
Reference in New Issue
Block a user