Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix issues #973 by migrating missinggo/perf to missinggo/v2/perf. #974

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
. "github.com/anacrolix/generics"
g "github.com/anacrolix/generics"
"github.com/anacrolix/log"
"github.com/anacrolix/missinggo/perf"
"github.com/anacrolix/missinggo/v2"
"github.com/anacrolix/missinggo/v2/bitmap"
"github.com/anacrolix/missinggo/v2/perf"

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / build-wasm (1.22)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test-benchmarks (1.22)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test-benchmarks (1.22)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test-386 (1.22)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test-386 (1.22)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / bench (1.22)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / bench (1.22)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test (1.22, ubuntu-latest)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test (1.22, ubuntu-latest)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test (1.22, ubuntu-latest)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test (1.22, macos-latest)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test (1.22, macos-latest)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test (1.22, macos-latest)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test (1.22, windows-latest)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0

Check failure on line 30 in client.go

View workflow job for this annotation

GitHub Actions / test (1.22, windows-latest)

reading github.com/anacrolix/missinggo/v2/perf/go.mod at revision v2/perf/v1.0.0: unknown revision v2/perf/v1.0.0
"github.com/anacrolix/missinggo/v2/pproffd"
"github.com/anacrolix/sync"
"github.com/cespare/xxhash"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/anacrolix/gostdapp v0.1.0
github.com/anacrolix/log v0.15.3-0.20240627045001-cd912c641d83
github.com/anacrolix/missinggo v1.3.0
github.com/anacrolix/missinggo/perf v1.0.0
github.com/anacrolix/missinggo/v2/perf v1.0.0
github.com/anacrolix/missinggo/v2 v2.7.3
github.com/anacrolix/multiless v0.3.0
github.com/anacrolix/possum/go v0.1.1-0.20240321122240-a01f3a22f2d1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ github.com/anacrolix/missinggo v1.1.2-0.20190815015349-b888af804467/go.mod h1:MB
github.com/anacrolix/missinggo v1.2.1/go.mod h1:J5cMhif8jPmFoC3+Uvob3OXXNIhOUikzMt+uUjeM21Y=
github.com/anacrolix/missinggo v1.3.0 h1:06HlMsudotL7BAELRZs0yDZ4yVXsHXGi323QBjAVASw=
github.com/anacrolix/missinggo v1.3.0/go.mod h1:bqHm8cE8xr+15uVfMG3BFui/TxyB6//H5fwlq/TeqMc=
github.com/anacrolix/missinggo/perf v1.0.0 h1:7ZOGYziGEBytW49+KmYGTaNfnwUqP1HBsy6BqESAJVw=
github.com/anacrolix/missinggo/perf v1.0.0/go.mod h1:ljAFWkBuzkO12MQclXzZrosP5urunoLS0Cbvb4V0uMQ=
github.com/anacrolix/missinggo/v2/perf v1.0.0 h1:7ZOGYziGEBytW49+KmYGTaNfnwUqP1HBsy6BqESAJVw=
github.com/anacrolix/missinggo/v2/perf v1.0.0/go.mod h1:ljAFWkBuzkO12MQclXzZrosP5urunoLS0Cbvb4V0uMQ=
github.com/anacrolix/missinggo/v2 v2.2.0/go.mod h1:o0jgJoYOyaoYQ4E2ZMISVa9c88BbUBVQQW4QeRkNCGY=
github.com/anacrolix/missinggo/v2 v2.5.1/go.mod h1:WEjqh2rmKECd0t1VhQkLGTdIWXO6f6NLjp5GlMZ+6FA=
github.com/anacrolix/missinggo/v2 v2.7.3 h1:Ee//CmZBMadeNiYB/hHo9ly2PFOEZ4Fhsbnug3rDAIE=
Expand Down
5 changes: 3 additions & 2 deletions mse/mse.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import (
"errors"
"expvar"
"fmt"
"github.com/anacrolix/torrent/internal/ctxrw"
"io"
"math"
"math/big"
"strconv"
"sync"

"github.com/anacrolix/missinggo/perf"
"github.com/anacrolix/torrent/internal/ctxrw"

"github.com/anacrolix/missinggo/v2/perf"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

g "github.com/anacrolix/generics"
"github.com/anacrolix/log"
"github.com/anacrolix/missinggo/perf"
"github.com/anacrolix/missinggo/v2"
"github.com/anacrolix/missinggo/v2/perf"
)

type Listener interface {
Expand Down
2 changes: 1 addition & 1 deletion tests/add-webseed-after-priorities/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/anacrolix/go-libutp v1.3.1 // indirect
github.com/anacrolix/log v0.15.2 // indirect
github.com/anacrolix/missinggo v1.3.0 // indirect
github.com/anacrolix/missinggo/perf v1.0.0 // indirect
github.com/anacrolix/missinggo/v2/perf v1.0.0 // indirect
github.com/anacrolix/missinggo/v2 v2.7.3 // indirect
github.com/anacrolix/mmsg v1.0.0 // indirect
github.com/anacrolix/multiless v0.3.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions tests/add-webseed-after-priorities/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ github.com/anacrolix/missinggo v1.1.2-0.20190815015349-b888af804467/go.mod h1:MB
github.com/anacrolix/missinggo v1.2.1/go.mod h1:J5cMhif8jPmFoC3+Uvob3OXXNIhOUikzMt+uUjeM21Y=
github.com/anacrolix/missinggo v1.3.0 h1:06HlMsudotL7BAELRZs0yDZ4yVXsHXGi323QBjAVASw=
github.com/anacrolix/missinggo v1.3.0/go.mod h1:bqHm8cE8xr+15uVfMG3BFui/TxyB6//H5fwlq/TeqMc=
github.com/anacrolix/missinggo/perf v1.0.0 h1:7ZOGYziGEBytW49+KmYGTaNfnwUqP1HBsy6BqESAJVw=
github.com/anacrolix/missinggo/perf v1.0.0/go.mod h1:ljAFWkBuzkO12MQclXzZrosP5urunoLS0Cbvb4V0uMQ=
github.com/anacrolix/missinggo/v2/perf v1.0.0 h1:7ZOGYziGEBytW49+KmYGTaNfnwUqP1HBsy6BqESAJVw=
github.com/anacrolix/missinggo/v2/perf v1.0.0/go.mod h1:ljAFWkBuzkO12MQclXzZrosP5urunoLS0Cbvb4V0uMQ=
github.com/anacrolix/missinggo/v2 v2.2.0/go.mod h1:o0jgJoYOyaoYQ4E2ZMISVa9c88BbUBVQQW4QeRkNCGY=
github.com/anacrolix/missinggo/v2 v2.5.1/go.mod h1:WEjqh2rmKECd0t1VhQkLGTdIWXO6f6NLjp5GlMZ+6FA=
github.com/anacrolix/missinggo/v2 v2.7.3 h1:Ee//CmZBMadeNiYB/hHo9ly2PFOEZ4Fhsbnug3rDAIE=
Expand Down
2 changes: 1 addition & 1 deletion tests/webseed-partial-seed/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/anacrolix/go-libutp v1.3.1 // indirect
github.com/anacrolix/log v0.15.2 // indirect
github.com/anacrolix/missinggo v1.3.0 // indirect
github.com/anacrolix/missinggo/perf v1.0.0 // indirect
github.com/anacrolix/missinggo/v2/perf v1.0.0 // indirect
github.com/anacrolix/missinggo/v2 v2.7.3 // indirect
github.com/anacrolix/mmsg v1.0.0 // indirect
github.com/anacrolix/multiless v0.3.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions tests/webseed-partial-seed/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ github.com/anacrolix/missinggo v1.1.2-0.20190815015349-b888af804467/go.mod h1:MB
github.com/anacrolix/missinggo v1.2.1/go.mod h1:J5cMhif8jPmFoC3+Uvob3OXXNIhOUikzMt+uUjeM21Y=
github.com/anacrolix/missinggo v1.3.0 h1:06HlMsudotL7BAELRZs0yDZ4yVXsHXGi323QBjAVASw=
github.com/anacrolix/missinggo v1.3.0/go.mod h1:bqHm8cE8xr+15uVfMG3BFui/TxyB6//H5fwlq/TeqMc=
github.com/anacrolix/missinggo/perf v1.0.0 h1:7ZOGYziGEBytW49+KmYGTaNfnwUqP1HBsy6BqESAJVw=
github.com/anacrolix/missinggo/perf v1.0.0/go.mod h1:ljAFWkBuzkO12MQclXzZrosP5urunoLS0Cbvb4V0uMQ=
github.com/anacrolix/missinggo/v2/perf v1.0.0 h1:7ZOGYziGEBytW49+KmYGTaNfnwUqP1HBsy6BqESAJVw=
github.com/anacrolix/missinggo/v2/perf v1.0.0/go.mod h1:ljAFWkBuzkO12MQclXzZrosP5urunoLS0Cbvb4V0uMQ=
github.com/anacrolix/missinggo/v2 v2.2.0/go.mod h1:o0jgJoYOyaoYQ4E2ZMISVa9c88BbUBVQQW4QeRkNCGY=
github.com/anacrolix/missinggo/v2 v2.5.1/go.mod h1:WEjqh2rmKECd0t1VhQkLGTdIWXO6f6NLjp5GlMZ+6FA=
github.com/anacrolix/missinggo/v2 v2.7.3 h1:Ee//CmZBMadeNiYB/hHo9ly2PFOEZ4Fhsbnug3rDAIE=
Expand Down
Loading