Skip to content

Commit

Permalink
txgen-mvar: label throttle thread
Browse files Browse the repository at this point in the history
Also a minor whitespace clean-up.
  • Loading branch information
NadiaYvette committed May 8, 2024
1 parent 3e4c00a commit 102b22c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bench/tx-generator/src/Cardano/Benchmarking/GeneratorTx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ walletBenchmark
traceWith traceSubmit $ TraceBenchTxSubDebug "tpsLimitedFeeder : transmitting done"
atomically $ sendStop tpsThrottle
traceWith traceSubmit $ TraceBenchTxSubDebug "tpsLimitedFeeder : shutdown done"
let tid = asyncThreadId tpsThrottleThread
labelThread tid $ "tpsThrottleThread " ++ show tid

let tpsFeederShutdown = do
cancel tpsThrottleThread
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ getNodeConfigFile :: NixServiceOptions -> Maybe FilePath
getNodeConfigFile = _nix_nodeConfigFile

setNodeConfigFile :: NixServiceOptions -> FilePath -> NixServiceOptions
setNodeConfigFile opts filePath = opts {_nix_nodeConfigFile = Just filePath }
setNodeConfigFile opts filePath = opts { _nix_nodeConfigFile = Just filePath }

-- dropping the '_nix_ prefix of above Haskell ADT field labels is assumed
-- to match JSON attribute names as provided by the Nix service definition
Expand Down

0 comments on commit 102b22c

Please sign in to comment.