Skip to content

Commit

Permalink
Expose numThreads in newSettings proc
Browse files Browse the repository at this point in the history
  • Loading branch information
its5Q authored and dom96 committed Jul 26, 2023
1 parent 2dfac07 commit 185c610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jester.nim
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ proc handleRequest(jes: Jester, httpReq: NativeRequest): Future[void] =

proc newSettings*(
port = Port(5000), staticDir = getCurrentDir() / "public",
appName = "", bindAddr = "", reusePort = false, maxBody = 8388608,
appName = "", bindAddr = "", reusePort = false, maxBody = 8388608, numThreads = 0,
futureErrorHandler: proc (fut: Future[void]) {.closure, gcsafe.} = nil
): Settings =
result = Settings(
Expand All @@ -430,6 +430,7 @@ proc newSettings*(
bindAddr: bindAddr,
reusePort: reusePort,
maxBody: maxBody,
numThreads: numThreads,
futureErrorHandler: futureErrorHandler
)

Expand Down

0 comments on commit 185c610

Please sign in to comment.