Skip to content

Commit

Permalink
Merge pull request #114 from NoRedInk/nri-http-fix-timeout-in-microse…
Browse files Browse the repository at this point in the history
…conds

nri-http: fix timeout value in microseconds
  • Loading branch information
zwilias authored Oct 21, 2024
2 parents 5facaac + b09cd6a commit 85b84bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nri-http/src/Http.hs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ _request doAnythingHandler manager settings = do
HTTP.requestBody = HTTP.RequestBodyLBS <| Internal.bodyContents (Internal.body settings),
HTTP.responseTimeout =
Internal.timeout settings
|> Maybe.withDefault (30 * 1000)
|> (*) 1000
|> Maybe.withDefault (30 * 1000 * 1000)
|> fromIntegral
|> HTTP.responseTimeoutMicro
}
Expand Down

0 comments on commit 85b84bf

Please sign in to comment.