Skip to content

Commit 5b2577f

Browse files
committed
Fix channel buffering for MCMCThreads
1 parent 022678e commit 5b2577f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sample.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ function mcmcsample(
488488
# Just a single progress bar for the entire sampling, but instead
489489
# of tracking each chain as it comes in, we track each sample as it
490490
# comes in. This allows us to have more granular progress updates.
491-
progress_channel = Channel{Bool}()
491+
progress_channel = Channel{Bool}(nchains)
492492
end
493493

494494
Distributed.@sync begin

0 commit comments

Comments
 (0)