Merge pull request #2768 from filecoin-project/fix/add-explanation
Fix/add explanation
This commit is contained in:
commit
43491cb7ed
@ -243,6 +243,10 @@ func (mp *MessagePool) Close() error {
|
||||
}
|
||||
|
||||
func (mp *MessagePool) Prune() {
|
||||
//so, its a single slot buffered channel. The first send fills the channel,
|
||||
//the second send goes through when the pruning starts,
|
||||
//and the third send goes through (and noops) after the pruning finishes
|
||||
//and goes through the loop again
|
||||
mp.pruneTrigger <- struct{}{}
|
||||
mp.pruneTrigger <- struct{}{}
|
||||
mp.pruneTrigger <- struct{}{}
|
||||
|
Loading…
Reference in New Issue
Block a user