diff --git a/http_post.go b/http_post.go index 2e3ad83d43..67d2f841df 100644 --- a/http_post.go +++ b/http_post.go @@ -139,7 +139,7 @@ func (n *HTTPPostNode) postRow(row *models.Row) { } // Set timeout - ctx, cancel := context.WithTimeout(req.Context(), h.timeout) + ctx, cancel := context.WithTimeout(req.Context(), n.timeout) defer cancel() req = req.WithContext(ctx)