diff options
author | Julien Dessaux | 2021-04-04 00:22:35 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-04-04 00:22:35 +0200 |
commit | e5314fd75d63d56911769f636fdd1d91bfbfaff3 (patch) | |
tree | 0829daaab1a7ab526cf62875e4152855cb17e5ec /navitia_api_client/client_test.go | |
parent | Renamed the api folder to something more specific (diff) | |
download | trains-e5314fd75d63d56911769f636fdd1d91bfbfaff3.tar.gz trains-e5314fd75d63d56911769f636fdd1d91bfbfaff3.tar.bz2 trains-e5314fd75d63d56911769f636fdd1d91bfbfaff3.zip |
Added 60 seconds caching to navitia api departures requests
Diffstat (limited to '')
-rw-r--r-- | navitia_api_client/client_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/navitia_api_client/client_test.go b/navitia_api_client/client_test.go index ec51a06..332b222 100644 --- a/navitia_api_client/client_test.go +++ b/navitia_api_client/client_test.go @@ -13,6 +13,7 @@ func NewTestClient(ts *httptest.Server) *Client { return &Client{ baseURL: fmt.Sprintf(ts.URL), httpClient: ts.Client(), + cache: make(map[string]cachedResult), } } |