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

Function updateLastSyncAt

pkg/cli/cmd/sync/sync.go:1039–1045  ·  view source on GitHub ↗
(tx *database.DB, val int64)

Source from the content-addressed store, hash-verified

1037}
1038
1039func updateLastSyncAt(tx *database.DB, val int64) error {
1040 if err := database.UpdateSystem(tx, consts.SystemLastSyncAt, val); err != nil {
1041 return errors.Wrapf(err, "updating %s", consts.SystemLastSyncAt)
1042 }
1043
1044 return nil
1045}
1046
1047func saveSyncState(tx *database.DB, serverTime int64, serverMaxUSN int, userMaxUSN int) error {
1048 // Handle last_max_usn update based on server state:

Callers 2

saveSyncStateFunction · 0.85
newRunFunction · 0.85

Calls 1

UpdateSystemFunction · 0.92

Tested by

no test coverage detected