From 2708e394d552d2187c4ae9cf31e02c8430e51292 Mon Sep 17 00:00:00 2001 From: doomsower <12031673+doomsower@users.noreply.github.com> Date: Sun, 9 Jun 2024 22:37:46 +0000 Subject: [PATCH] fix: norway batch size --- scripts/norway/descriptor.go | 2 +- scripts/norway/requests.http | 31 +------------------------------ 2 files changed, 2 insertions(+), 31 deletions(-) diff --git a/scripts/norway/descriptor.go b/scripts/norway/descriptor.go index c0309fc..60e9197 100644 --- a/scripts/norway/descriptor.go +++ b/scripts/norway/descriptor.go @@ -14,7 +14,7 @@ var Descriptor = &core.ScriptDescriptor{ DefaultOptions: func() interface{} { return &optionsNorway{ ApiKey: os.Getenv("NVE_API_KEY"), - BatchSize: 20, + BatchSize: 5, // determined experiementally } }, Factory: func(name string, options interface{}) (core.Script, error) { diff --git a/scripts/norway/requests.http b/scripts/norway/requests.http index 484ec79..84dd1ab 100644 --- a/scripts/norway/requests.http +++ b/scripts/norway/requests.http @@ -6,35 +6,6 @@ Content-Type: application/json ### # Measurements -POST http://localhost:7080/upstream/norway/measurements?codes=6.38 +POST http://localhost:7080/upstream/norway/measurements?codes=139.13,15.21,151.15,151.21,16.128 Cache-Control: no-cache Content-Type: application/json - -### -# Measurements v2 -POST http://localhost:7080/upstream/norway/measurements?codes=62.10 -Cache-Control: no-cache -Content-Type: application/json - -{ - "version": 2 -} -### -# Measurements csv -POST http://localhost:7080/upstream/norway/measurements?codes=163.7 -Cache-Control: no-cache -Content-Type: application/json - -{ - "csv": {} -} - -### -# Measurements html -POST http://localhost:7080/upstream/norway/measurements?codes=163.7 -Cache-Control: no-cache -Content-Type: application/json - -{ - "html": true -}