Skip to content

Commit

Permalink
fix: norway batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Jun 9, 2024
1 parent 7bd6afa commit 2708e39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
2 changes: 1 addition & 1 deletion scripts/norway/descriptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
31 changes: 1 addition & 30 deletions scripts/norway/requests.http
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 2708e39

Please sign in to comment.