From fedf012e632a31d2d0837c22832c7683547ad379 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 22 Jul 2021 14:26:13 +0300 Subject: BC for the Pool, worker interfaces, pass/return payload by pointer Signed-off-by: Valery Piashchynski --- pkg/worker_handler/response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/worker_handler/response.go') diff --git a/pkg/worker_handler/response.go b/pkg/worker_handler/response.go index cbf22794..d22f09d4 100644 --- a/pkg/worker_handler/response.go +++ b/pkg/worker_handler/response.go @@ -22,7 +22,7 @@ type Response struct { } // NewResponse creates new response based on given pool payload. -func NewResponse(p payload.Payload) (*Response, error) { +func NewResponse(p *payload.Payload) (*Response, error) { const op = errors.Op("http_response") r := &Response{Body: p.Body} if err := json.Unmarshal(p.Context, r); err != nil { -- cgit v1.2.3