doc: add refactor note

Co-authored-by: Gaze <dev@gaze.network>
This commit is contained in:
Gaze
2024-04-25 00:37:36 +07:00
parent 1a512ea4d4
commit b582b4b111

View File

@@ -157,6 +157,7 @@ func (d *BitcoinNodeDatasource) FetchAsync(ctx context.Context, from, to int64,
done := subscription.Done()
chunks := lo.Chunk(blockHeights, blockStreamChunkSize)
for _, chunk := range chunks {
// TODO: Implement throttling logic to control the rate of fetching blocks (block/sec)
chunk := chunk
select {
case <-done: