From fee2000d0be1fd5964142a14de0371e7547d5589 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Wed, 5 Feb 2025 10:42:13 +0100 Subject: dashboard/app: use request context It looks cheaper than appengine.NewContext(). --- dashboard/app/batch_db_export.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dashboard/app/batch_db_export.go') diff --git a/dashboard/app/batch_db_export.go b/dashboard/app/batch_db_export.go index 9ca294d70..d667e2728 100644 --- a/dashboard/app/batch_db_export.go +++ b/dashboard/app/batch_db_export.go @@ -7,14 +7,13 @@ import ( "net/http" "cloud.google.com/go/batch/apiv1/batchpb" - "google.golang.org/appengine/v2" "google.golang.org/appengine/v2/log" ) const exportTimeoutSeconds = 60 * 60 * 6 func handleBatchDBExport(w http.ResponseWriter, r *http.Request) { - ctx := appengine.NewContext(r) + ctx := r.Context() for ns, nsConfig := range getConfig(ctx).Namespaces { if nsConfig.ReproExportPath == "" { continue -- cgit mrf-deployment