MCPcopy Index your code
hub / github.com/dnote/dnote / getLastSyncAt

Function getLastSyncAt

pkg/cli/cmd/sync/sync.go:63–71  ·  view source on GitHub ↗
(tx *database.DB)

Source from the content-addressed store, hash-verified

61}
62
63func getLastSyncAt(tx *database.DB) (int, error) {
64 var ret int
65
66 if err := database.GetSystem(tx, consts.SystemLastSyncAt, &ret); err != nil {
67 return ret, errors.Wrap(err, "querying last sync time")
68 }
69
70 return ret, nil
71}
72
73func getLastMaxUSN(tx *database.DB) (int, error) {
74 var ret int

Callers 2

newRunFunction · 0.85
TestGetLastSyncAtFunction · 0.85

Calls 1

GetSystemFunction · 0.92

Tested by 1

TestGetLastSyncAtFunction · 0.68