add fastexact to main
parent
5742a215b1
commit
9427e85202
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue