WIP: states with updater func instead of direct locking
This commit is contained in:
@@ -91,7 +91,8 @@ func (r *Replication) Report() *Report {
|
||||
rep.Completed = append(rep.Completed, filesystemReplicationReportFromQueueItem(qitem))
|
||||
}
|
||||
|
||||
rep.Active = filesystemReplicationReportFromQueueItem(r.active)
|
||||
|
||||
if r.active != nil {
|
||||
rep.Active = filesystemReplicationReportFromQueueItem(r.active)
|
||||
}
|
||||
return &rep
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user