add duration tracking to sync status

This commit is contained in:
whyrusleeping
2019-12-03 20:59:41 -08:00
parent 034f0cc479
commit c302051bc2
4 changed files with 32 additions and 8 deletions
+7 -4
View File
@@ -26,10 +26,13 @@ func (a *SyncAPI) SyncState(ctx context.Context) (*api.SyncState, error) {
for _, ss := range states {
out.ActiveSyncs = append(out.ActiveSyncs, api.ActiveSync{
Base: ss.Base,
Target: ss.Target,
Stage: ss.Stage,
Height: ss.Height,
Base: ss.Base,
Target: ss.Target,
Stage: ss.Stage,
Height: ss.Height,
Start: ss.Start,
End: ss.End,
Message: ss.Message,
})
}
return out, nil