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

Method SetShutdownSyncTimeout

store.go:488–495  ·  view source on GitHub ↗

SetShutdownSyncTimeout updates the shutdown sync timeout and propagates it to all managed databases.

(d time.Duration)

Source from the content-addressed store, hash-verified

486// SetShutdownSyncTimeout updates the shutdown sync timeout and propagates it to
487// all managed databases.
488func (s *Store) SetShutdownSyncTimeout(d time.Duration) {
489 s.mu.Lock()
490 defer s.mu.Unlock()
491 s.ShutdownSyncTimeout = d
492 for _, db := range s.dbs {
493 db.ShutdownSyncTimeout = d
494 }
495}
496
497// SetShutdownSyncInterval updates the shutdown sync interval and propagates it to
498// all managed databases.

Callers 1

RunMethod · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected