doc: add note

Co-authored-by: Gaze <dev@gaze.network>
This commit is contained in:
Gaze
2024-04-17 21:01:22 +07:00
parent e186ad895d
commit 39949cd443

View File

@@ -58,6 +58,7 @@ func (i *BitcoinIndexer) Run(ctx context.Context) (err error) {
// TODO:
// - compare db version in constants and database
// - compare current network and local indexed network
// - update indexer stats
ticker := time.NewTicker(10 * time.Second)
@@ -67,8 +68,6 @@ func (i *BitcoinIndexer) Run(ctx context.Context) (err error) {
case <-ctx.Done():
return nil
case <-ticker.C:
ctx := logger.WithContext(ctx, slog.Int64("current_block_height", i.currentBlock.Height))
if err := i.process(ctx); err != nil {
logger.ErrorContext(ctx, "failed to process", slogx.Error(err))
return errors.Wrap(err, "failed to process")