Commit bfc31ec4 authored by Antoni Zaprzała's avatar Antoni Zaprzała

small update

parent 69d788a9
......@@ -23,7 +23,8 @@ app.MapPost("/logs", (LogBatch batch, LogQueue queue, IOptions<LogOptions> opts)
if (batch.Logs.Length > opts.Value.MaxBatchEntries)
return Results.BadRequest($"Batch too large (max {opts.Value.MaxBatchEntries})");
queue.TryEnqueue(batch);
var success = queue.TryEnqueue(batch);
if (!success) return Results.BadRequest();
return Results.Accepted();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment