Skip to content

Commit

Permalink
Merge pull request #31 from herp-inc/do-not-exceed-maximum
Browse files Browse the repository at this point in the history
Use a patched resource-pool to specify num of stripes
  • Loading branch information
ruicc authored Dec 5, 2022
2 parents cf34488 + 1a50324 commit 284ac00
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.stack-work
dist-newstyle/
cabal.project.local
8 changes: 8 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
packages:
.

source-repository-package
type: git
location: https://github.com/MercuryTechnologies/pool.git
tag: 1aa551e41e3527ce23f38251567507df5357fdb9

5 changes: 3 additions & 2 deletions herp-logger.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: 3.8
cabal-version: 3.6

-- This file has been generated from package.yaml by hpack version 0.34.5.
--
Expand Down Expand Up @@ -101,10 +101,11 @@ common test

test-suite stdout
import: test
type: exitcode-stdio-1.0
main-is: stdout.hs
build-depends: fast-logger, mtl

test-suite abort
import: test
type: exitcode-stdio-1.0
main-is: abort.hs

1 change: 1 addition & 0 deletions src/Herp/Logger.hs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ mkThreadPool poolMaxResources errHandler = do
atomically (flushTQueue queue) >>= sequence_
cancel thread
let poolCacheTTL = 3600
let poolNumStripes = Just 1
pool <- newPool PoolConfig{..}
pure pool

Expand Down

0 comments on commit 284ac00

Please sign in to comment.