Skip to content

Commit

Permalink
fix: move offset and length into retry logic
Browse files Browse the repository at this point in the history
  • Loading branch information
crebsy committed Jul 8, 2024
1 parent 2ca57e8 commit 57d525e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ func downloadoor(index *moonproto.Index, chunkChan chan<- Chunk, downloadChan <-
// contains already the url_prefix but missing the leading "/"
libName := "/" + index.Libraries[libChunk.LibraryIndex].Name
retries := 0
localStartOffset := libChunk.StartOffset
localLength := libChunk.Length
//fmt.Printf("start=%s, startOffset=%d\n", u.Path, libChunk.StartOffset)
retry:
localStartOffset := libChunk.StartOffset
localLength := libChunk.Length
// get url for lib
libUrlCreds := getSnapUrlCreds(libName)
u, err := url.Parse(libUrlCreds.Url)
Expand Down

0 comments on commit 57d525e

Please sign in to comment.