File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -155,9 +155,9 @@ func (p *peer) broadcastBlocks() {
155
155
// node internals and at the same time rate limits queued data.
156
156
func (p * peer ) broadcastTransactions () {
157
157
var (
158
- queue []common.Hash // Queue of hashes to broadcast as full transactions
159
- done chan struct {} // Non-nil if background broadcaster is running
160
- fail = make (chan error ) // Channel used to receive network error
158
+ queue []common.Hash // Queue of hashes to broadcast as full transactions
159
+ done chan struct {} // Non-nil if background broadcaster is running
160
+ fail = make (chan error , 1 ) // Channel used to receive network error
161
161
)
162
162
for {
163
163
// If there's no in-flight broadcast running, check if a new one is needed
@@ -217,9 +217,9 @@ func (p *peer) broadcastTransactions() {
217
217
// node internals and at the same time rate limits queued data.
218
218
func (p * peer ) announceTransactions () {
219
219
var (
220
- queue []common.Hash // Queue of hashes to announce as transaction stubs
221
- done chan struct {} // Non-nil if background announcer is running
222
- fail = make (chan error ) // Channel used to receive network error
220
+ queue []common.Hash // Queue of hashes to announce as transaction stubs
221
+ done chan struct {} // Non-nil if background announcer is running
222
+ fail = make (chan error , 1 ) // Channel used to receive network error
223
223
)
224
224
for {
225
225
// If there's no in-flight announce running, check if a new one is needed
You can’t perform that action at this time.
0 commit comments