Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Sharp authored and Alexey Sharp committed Apr 25, 2022
1 parent 8af7be7 commit ee5a1e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/stagedsync/stage_headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,7 @@ func WaitForDownloader(ctx context.Context, tx kv.RwTx, cfg HeadersCfg) error {
}
break
}
log.Info("Requested download", "file", p.Name)

if reply, err := cfg.snapshotDownloader.Stats(ctx, &proto_downloader.StatsRequest{}); err != nil {
log.Warn("Error while waiting for snapshots progress", "err", err)
Expand Down Expand Up @@ -1251,6 +1252,8 @@ func WaitForDownloader(ctx context.Context, tx kv.RwTx, cfg HeadersCfg) error {
"download", libcommon.ByteCount(readBytesPerSec)+"/s",
"torrent_peers", reply.Peers,
"connections", reply.Connections,
"bytes completed", reply.BytesCompleted,
"total bytes", reply.BytesTotal,
// "upload", libcommon.ByteCount(writeBytesPerSec)+"/s",
)
prevBytesCompleted = reply.BytesCompleted
Expand Down

0 comments on commit ee5a1e8

Please sign in to comment.