diff --git a/main.go b/main.go index 47097f4..68b7fd7 100644 --- a/main.go +++ b/main.go @@ -195,10 +195,6 @@ func (v *Scraper) fetch() *BustimeData { key := v.config.Key baseURL := v.config.BaseUrl url := fmt.Sprintf(cleverDevicesVehicleQueryFormatter, baseURL, key) - if DEV { - url = baseURL - log.Println("Using mock bustime server.") - } log.Println("Scraper URL:", url) resp, err := v.client.Get(url) if err != nil { diff --git a/mock_bustime_server/main.go b/mock_bustime_server/main.go index ebb6939..b9edd41 100644 --- a/mock_bustime_server/main.go +++ b/mock_bustime_server/main.go @@ -9,12 +9,12 @@ const port = ":8081" func main() { http.HandleFunc( - "/getvehicles", + "/getvehicles", // ignores query params func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "./mock_vehicles.json") log.Println("GET /getvehicles :: Served Vehicles") }, ) - log.Printf("\n\nMock bustime server is running at: http://localhost%s \n", port) + log.Printf("\n\nMock Clever Devices Bustime server is running at: http://localhost%s \n", port) log.Fatal(http.ListenAndServe(port, nil)) }