Skip to content

Commit

Permalink
fix h.timeout -> n.timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sputnik13 committed Sep 6, 2017
1 parent 5f78868 commit ef186e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_post.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ef186e8

Please sign in to comment.