mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 20:11:21 +00:00
Fix build (#1119)
Seems like an parallel edits caused build to fail @mh0lt
This commit is contained in:
parent
7c471800a0
commit
9b4a1c6ba8
@ -89,8 +89,9 @@ func (s *AggStats) clone() *AggStats {
|
||||
UploadRate: s.UploadRate,
|
||||
DownloadRate: s.DownloadRate,
|
||||
}
|
||||
sc.DroppedCompleted.Store(s.DroppedCompleted.Load())
|
||||
sc.DroppedTotal.Store(s.DroppedTotal.Load())
|
||||
atomic.StoreUint64(&sc.DroppedCompleted, atomic.LoadUint64(&s.DroppedCompleted))
|
||||
atomic.StoreUint64(&sc.DroppedTotal, atomic.LoadUint64(&s.DroppedTotal))
|
||||
|
||||
return sc
|
||||
}
|
||||
|
||||
@ -107,8 +108,9 @@ func (s *AggStats) copy(o *AggStats) *AggStats {
|
||||
s.BytesUpload = o.BytesUpload
|
||||
s.UploadRate = o.UploadRate
|
||||
s.DownloadRate = o.DownloadRate
|
||||
s.DroppedCompleted.Store(o.DroppedCompleted.Load())
|
||||
s.DroppedTotal.Store(o.DroppedTotal.Load())
|
||||
atomic.StoreUint64(&s.DroppedCompleted, atomic.LoadUint64(&o.DroppedCompleted))
|
||||
atomic.StoreUint64(&s.DroppedTotal, atomic.LoadUint64(&o.DroppedTotal))
|
||||
|
||||
return s
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user