WIP: states with updater func instead of direct locking

This commit is contained in:
Christian Schwarz
2018-08-16 01:26:09 +02:00
parent 991f13a3da
commit 094eced2c7
4 changed files with 187 additions and 155 deletions
+3 -2
View File
@@ -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
}