Seems like an parallel edits caused build to fail @mh0lt
This commit is contained in:
Somnath Banerjee 2023-09-10 22:26:28 +05:30 committed by GitHub
parent 7c471800a0
commit 9b4a1c6ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,8 +89,9 @@ func (s *AggStats) clone() *AggStats {
UploadRate: s.UploadRate, UploadRate: s.UploadRate,
DownloadRate: s.DownloadRate, DownloadRate: s.DownloadRate,
} }
sc.DroppedCompleted.Store(s.DroppedCompleted.Load()) atomic.StoreUint64(&sc.DroppedCompleted, atomic.LoadUint64(&s.DroppedCompleted))
sc.DroppedTotal.Store(s.DroppedTotal.Load()) atomic.StoreUint64(&sc.DroppedTotal, atomic.LoadUint64(&s.DroppedTotal))
return sc return sc
} }
@ -107,8 +108,9 @@ func (s *AggStats) copy(o *AggStats) *AggStats {
s.BytesUpload = o.BytesUpload s.BytesUpload = o.BytesUpload
s.UploadRate = o.UploadRate s.UploadRate = o.UploadRate
s.DownloadRate = o.DownloadRate s.DownloadRate = o.DownloadRate
s.DroppedCompleted.Store(o.DroppedCompleted.Load()) atomic.StoreUint64(&s.DroppedCompleted, atomic.LoadUint64(&o.DroppedCompleted))
s.DroppedTotal.Store(o.DroppedTotal.Load()) atomic.StoreUint64(&s.DroppedTotal, atomic.LoadUint64(&o.DroppedTotal))
return s return s
} }