celestiaorg / go-header

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

fix(store): respect context in flushLoop #214

Open cristaloleg opened 2 months ago

cristaloleg commented 2 months ago

Overview

After #211 we can improve Store[H].flushLoop a bit more: respect context. Also, added a test to verify that retries works.

Lowered max sleep from 1sec, 100msec should be enough.