Skip to content

Commit

Permalink
Bump httpseek
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Feb 18, 2025
1 parent f961bba commit f3b7371
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/spf13/cobra v1.8.1
github.com/wzshiming/cmux v0.4.2
github.com/wzshiming/hostmatcher v0.0.3
github.com/wzshiming/httpseek v0.2.0
github.com/wzshiming/httpseek v0.4.0
github.com/wzshiming/imc v0.0.0-20250106051804-1cb884b5184a
github.com/wzshiming/sss v0.0.0-20250217062824-3687ab53ed28
golang.org/x/crypto v0.28.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ github.com/wzshiming/cmux v0.4.2 h1:tI73lL5ztVfiqw7R5m5BkxT1+vQ2PBo/oV6qPbNGPiA=
github.com/wzshiming/cmux v0.4.2/go.mod h1:JgE61QfZAjEyNMX0iZo9zIKY6pr9bHVY132yYPwHW5U=
github.com/wzshiming/hostmatcher v0.0.3 h1:+JYAq6vUZXDEQ1Ipfdc/D7HmaIMngcc71ftonyCQVQk=
github.com/wzshiming/hostmatcher v0.0.3/go.mod h1:F04RIvIWEvOIrIKOlQlMuR8vQMKAVf2YhpU6l31Wwz4=
github.com/wzshiming/httpseek v0.2.0 h1:DLNEvItWRUfbodEc4G2iAZ5Be6vnvSEgtGd095eiW0g=
github.com/wzshiming/httpseek v0.2.0/go.mod h1:YoZhlLIwNjTBDXIT8NpK5zRjOgZouRXPaBfjVXdqMMs=
github.com/wzshiming/httpseek v0.4.0 h1:5Dbij1/CWrnVsgjB5OEpWDJqLZjozTDITAMsaMSW9s0=
github.com/wzshiming/httpseek v0.4.0/go.mod h1:YoZhlLIwNjTBDXIT8NpK5zRjOgZouRXPaBfjVXdqMMs=
github.com/wzshiming/imc v0.0.0-20250106051804-1cb884b5184a h1:yUonFTTPA3PrOz4J1RTvK7gbTn+iiwX6VAJdNCCu3is=
github.com/wzshiming/imc v0.0.0-20250106051804-1cb884b5184a/go.mod h1:U4qkQ1uQB16r15JFVbbTmevsVJnqBz9p/sHdIThCs/A=
github.com/wzshiming/sss v0.0.0-20250217062824-3687ab53ed28 h1:E7MTi8UZJFW8dgZrbw/h29iHbpU3Ufx8/cyX7/3FPIE=
Expand Down
4 changes: 2 additions & 2 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func (r *Runner) blob(ctx context.Context, host, name, blob string, size int64,
f, err := subCaches[0].BlobWriter(ctx, blob, true)
if err == nil {

seeker := httpseek.NewSeeker(ctx, r.httpClient.Transport, req)
seeker := httpseek.NewSeekerWithHTTPClient(ctx, r.httpClient, req)

_, err = seeker.Seek(f.Size(), 0)
if err != nil {
Expand Down Expand Up @@ -520,7 +520,7 @@ func (r *Runner) blob(ctx context.Context, host, name, blob string, size int64,
}
}

seeker := httpseek.NewSeeker(ctx, r.httpClient.Transport, req)
seeker := httpseek.NewSeekerWithHTTPClient(ctx, r.httpClient, req)

_, err := seeker.Seek(offset, 0)
if err != nil {
Expand Down

0 comments on commit f3b7371

Please sign in to comment.