Skip to content

Commit f66a879

Browse files
committed
fix toll parameter copy
1 parent ca5cc59 commit f66a879

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/node/toll.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ func (e *TollEmitter) ShouldPropagate() bool {
4646
}
4747

4848
func (e *TollEmitter) Copy() common.EmitterBehavior {
49+
newThreshold := *e.Threshold
4950
return &TollEmitter{
50-
Threshold: e.Threshold,
51+
Threshold: &newThreshold,
5152
}
5253
}
5354

0 commit comments

Comments
 (0)