fix(input): correct lon mapping
This commit is contained in:
parent
19557f3a62
commit
84d1664b29
20 changed files with 1197 additions and 137 deletions
|
|
@ -74,7 +74,11 @@ func New(port int, d Deps) (*Server, error) {
|
|||
Workers: d.AsyncWorkers,
|
||||
QueueSize: d.AsyncQueueSize,
|
||||
ResultTTL: d.AsyncResultTTL,
|
||||
}, h.runPredictionV2, d.Metrics, d.Log)
|
||||
// The async queue outlives the HTTP request that enqueued the job, so a
|
||||
// worker cannot inherit its context.
|
||||
}, func(req *apirest.PredictionV2Request) (*apirest.PredictionV2Response, error) {
|
||||
return h.runPredictionV2(context.Background(), req)
|
||||
}, d.Metrics, d.Log)
|
||||
|
||||
ogenSrv, err := apirest.NewServer(h, apirest.WithMiddleware(middleware.OgenLogging(d.Log)))
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue