celestiaorg / go-header

Go library with all the services needed to request, sync and store blockchain headers.
Apache License 2.0
17 stars 16 forks source link

fix(syncer): set timeout for head request #152

Closed vgonkivs closed 5 months ago

vgonkivs commented 5 months ago

Overview

Set timeout to avoid the syncer being stuck on the Head request if the other node is unresponsive.

Checklist

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a5a9f28) 63.85% compared to head (89c2b8f) 63.99%. Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #152 +/- ## ========================================== + Coverage 63.85% 63.99% +0.13% ========================================== Files 39 39 Lines 3389 3391 +2 ========================================== + Hits 2164 2170 +6 + Misses 1059 1054 -5 - Partials 166 167 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.