litestream-ruby icon indicating copy to clipboard operation
litestream-ruby copied to clipboard

configurable sleep time for Litestream.verify!

Open spinosa opened this issue 1 year ago • 0 comments

When sync-interval is configured beyond the default, Litestream.verify! may appear to fail where it actually didn't wait long enough for replication.

This adds a parameter replication_sleep: to Litestream.verify! with a default of 10 for backwards compatibility.

While reading litestream.yml configuration to parse sync-interval and using a multiple of it might be nice, the added complexity didn't seem justified.

spinosa avatar Jan 20 '25 16:01 spinosa