*: replace 3600 seconds with 1 hour

Signed-off-by: Samuel Karp <skarp@amazon.com>
This commit is contained in:
Samuel Karp
2018-08-02 11:39:14 -07:00
parent b8f4c7a9bd
commit 9665a2650a
4 changed files with 7 additions and 7 deletions

View File

@@ -420,12 +420,12 @@ func (cs *contentStore) Writer(ctx context.Context, opts ...content.WriterOpt) (
}
if !leased {
// Add timestamp to allow aborting once stale
// When lease is set the ingest shoudl be aborted
// When lease is set the ingest should be aborted
// after lease it belonged to is deleted.
// Expiration can be configurable in the future to
// give more control to the daemon, however leases
// already give users more control of expiration.
expireAt := time.Now().UTC().Add(24 * 3600 * time.Second)
expireAt := time.Now().UTC().Add(24 * time.Hour)
if err := writeExpireAt(expireAt, bkt); err != nil {
return err
}