From e5314fd75d63d56911769f636fdd1d91bfbfaff3 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 4 Apr 2021 00:22:35 +0200 Subject: Added 60 seconds caching to navitia api departures requests --- navitia_api_client/client_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'navitia_api_client/client_test.go') 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), } } -- cgit v1.2.3