Skip to content

Commit

Permalink
fix: divide headers amount by 100
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Feb 1, 2024
1 parent f327217 commit 167e306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func (s *Syncer[H]) requestHeaders(
now := time.Now()
to := fromHead.Height() + size + 1
headers, err := s.getter.GetRangeByHeight(ctx, fromHead, to)
s.metrics.getRangeRequestTime(s.ctx, time.Since(now), int(size), err != nil)
s.metrics.getRangeRequestTime(s.ctx, time.Since(now), int(size)/100, err != nil)
if err != nil {
return err
}
Expand Down

0 comments on commit 167e306

Please sign in to comment.