MCPcopy
hub / github.com/benbjohnson/litestream / currentTimeString

Method currentTimeString

vfs.go:2441–2449  ·  view source on GitHub ↗

currentTimeString returns the current target time as a string.

()

Source from the content-addressed store, hash-verified

2439
2440// currentTimeString returns the current target time as a string.
2441func (f *VFSFile) currentTimeString() string {
2442 if t := f.TargetTime(); t != nil {
2443 return t.Format(time.RFC3339Nano)
2444 }
2445 if t := f.LatestLTXTime(); !t.IsZero() {
2446 return t.Format(time.RFC3339Nano)
2447 }
2448 return "latest" // Fallback if no LTX files loaded
2449}
2450
2451func isRetryablePageError(err error) bool {
2452 if err == nil {

Callers 2

FileControlMethod · 0.95
GetVFSConnectionTimeFunction · 0.80

Calls 3

TargetTimeMethod · 0.95
LatestLTXTimeMethod · 0.95
IsZeroMethod · 0.80

Tested by

no test coverage detected