Manager: check returned error of touchfile call

This commit is contained in:
Sybren A. Stüvel 2022-03-25 12:36:06 +01:00
parent eeeec23f43
commit 7e035ec3bf

View File

@ -201,7 +201,9 @@ func (m *Manager) SymlinkToCheckout(blobPath, checkoutPath, symlinkRelativePath
// Change the modification time of the blob to mark it as 'referenced' just now. // Change the modification time of the blob to mark it as 'referenced' just now.
m.wg.Add(1) m.wg.Add(1)
go func() { go func() {
touchFile(blobPath) if err := touchFile(blobPath); err != nil {
logger.Warn().Err(err).Msg("shaman: unable to touch blob path")
}
m.wg.Done() m.wg.Done()
}() }()