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

Function updateLastMaxUSN

pkg/cli/cmd/sync/sync.go:1031–1037  ·  view source on GitHub ↗
(tx *database.DB, val int)

Source from the content-addressed store, hash-verified

1029}
1030
1031func updateLastMaxUSN(tx *database.DB, val int) error {
1032 if err := database.UpdateSystem(tx, consts.SystemLastMaxUSN, val); err != nil {
1033 return errors.Wrapf(err, "updating %s", consts.SystemLastMaxUSN)
1034 }
1035
1036 return nil
1037}
1038
1039func updateLastSyncAt(tx *database.DB, val int64) error {
1040 if err := database.UpdateSystem(tx, consts.SystemLastSyncAt, val); err != nil {

Callers 4

sendBooksFunction · 0.85
sendNotesFunction · 0.85
saveSyncStateFunction · 0.85
prepareEmptyServerSyncFunction · 0.85

Calls 1

UpdateSystemFunction · 0.92

Tested by

no test coverage detected