OpenAtomFoundation / xupercore

The kernel of xuperchain.
Apache License 2.0
61 stars 47 forks source link

p2p: add timeout for send message #243

Closed icexin closed 3 years ago

icexin commented 3 years ago

Description

Add write timeout for send p2p message

codecov-commenter commented 3 years ago

Codecov Report

Merging #243 (57d14e2) into master (023703f) will decrease coverage by 0.04%. The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #243      +/-   ##
==========================================
- Coverage   46.74%   46.70%   -0.05%     
==========================================
  Files         136      136              
  Lines       12002    12004       +2     
==========================================
- Hits         5610     5606       -4     
- Misses       5234     5240       +6     
  Partials     1158     1158              
Impacted Files Coverage Δ
bcs/network/p2pv2/stream.go 54.31% <50.00%> (+0.80%) :arrow_up:
bcs/consensus/tdpos/common.go 64.06% <0.00%> (-3.13%) :arrow_down:
bcs/consensus/tdpos/tdpos.go 47.34% <0.00%> (-1.94%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 023703f...57d14e2. Read the comment docs.