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

@@ -52,7 +52,7 @@ func (s *IPFSStorage) Setup(config Config) {
s.createIPFSDirectory("./hls")
}
func (s *IPFSStorage) Save(filePath string) string {
func (s *IPFSStorage) Save(filePath string, retryCount int) string {
someFile, err := getUnixfsNode(filePath)
defer someFile.Close()