Add basic file upload retry with a hardcoded limit

This commit is contained in:
Gabe Kangas
2020-06-17 22:01:53 -07:00
parent 728b5fe3d7
commit e63d0656ba
4 changed files with 10 additions and 6 deletions

View File

@@ -108,7 +108,7 @@ func monitorVideoContent(pathToMonitor string, configuration Config, storage Chu
newObjectPathChannel := make(chan string, 1)
go func() {
newObjectPath := storage.Save(path.Join(configuration.PrivateHLSPath, segment.RelativeUploadPath))
newObjectPath := storage.Save(path.Join(configuration.PrivateHLSPath, segment.RelativeUploadPath), 0)
newObjectPathChannel <- newObjectPath
}()
newObjectPath := <-newObjectPathChannel