We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388194c commit 1c7dd6eCopy full SHA for 1c7dd6e
ouroboros-consensus/changelog.d/jasagedo-label-thread.md
@@ -0,0 +1,3 @@
1
+### Patch
2
+
3
+- Label the leaky bucket thread.
ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Util/LeakyBucket.hs
@@ -222,7 +222,9 @@ runAgainstBucket config action = do
222
leakingPeriodVersionTMVar <- atomically newEmptyTMVar -- see note [Leaky bucket design].
223
tid <- myThreadId
224
bucket <- init config
225
- withAsync (leak (readTMVar leakingPeriodVersionTMVar) tid bucket) $ \_ -> do
+ withAsync (do
226
+ labelThisThread "Leaky bucket (ouroboros-consensus)"
227
+ leak (readTMVar leakingPeriodVersionTMVar) tid bucket) $ \_ -> do
228
atomicallyWithMonotonicTime $ maybeStartThread Nothing leakingPeriodVersionTMVar bucket
229
result <-
230
action $
0 commit comments