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
+5
View File
@@ -2,6 +2,7 @@ package api
import (
"context"
"time"
"github.com/ipfs/go-cid"
"github.com/ipfs/go-filestore"
@@ -263,6 +264,10 @@ type ActiveSync struct {
Stage SyncStateStage
Height uint64
Start time.Time
End time.Time
Message string
}
type SyncState struct {