stream: rename the dequeue id local to avoid shadowing
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
b5f83ef6c8
commit
100195ca6e
1 changed files with 3 additions and 3 deletions
|
|
@ -71,13 +71,13 @@ ingest_dequeue_url = "http://ingest:8080/dequeue"
|
|||
harbor.http.register(
|
||||
port=8000, method="POST", "/dequeue",
|
||||
fun(req, resp) -> begin
|
||||
id = list.assoc(default="", "id", req.query)
|
||||
if id == "" then
|
||||
entry_id = list.assoc(default="", "id", req.query)
|
||||
if entry_id == "" then
|
||||
resp.status_code(400)
|
||||
resp.data("missing id")
|
||||
else
|
||||
body = http.post(
|
||||
data="", timeout=10.0, "#{ingest_dequeue_url}?id=#{url.encode(id)}"
|
||||
data="", timeout=10.0, "#{ingest_dequeue_url}?id=#{url.encode(entry_id)}"
|
||||
)
|
||||
resp.status_code(body.status_code)
|
||||
resp.content_type("application/json; charset=utf-8")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue