Skip to content

Commit 7a18b39

Browse files
authored
chore: use fork of jitterbug (#2846)
1 parent 9c4c183 commit 7a18b39

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

e2e/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,15 @@ github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 h1:SOEGU9fKiNWd/HOJuq
215215
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0/go.mod h1:dXGbAdH5GtBTC4WfIxhKZfyBF/HBFgRZSWwZ9g/He9o=
216216
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 h1:P6pPBnrTSX3DEVR4fDembhRWSsG5rVo6hYhAB/ADZrk=
217217
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0/go.mod h1:vmVJ0l/dxyfGW6FmdpVm2joNMFikkuWg0EoCKLGUMNw=
218-
github.com/lthibault/jitterbug v2.0.0+incompatible h1:qouq51IKzlMx25+15jbxhC/d79YyTj0q6XFoptNqaUw=
219-
github.com/lthibault/jitterbug v2.0.0+incompatible/go.mod h1:2l7akWd27PScEs6YkjyUVj/8hKgNhbbQ3KiJgJtlf6o=
220218
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
221219
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
222220
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
223221
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
224222
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
225223
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
226224
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
225+
github.com/miparnisari/jitterbug v0.0.0-20260123191925-5442e9d50926 h1:x6smVPDCc4p3j4qtG5qO1uNcsPH8hVWMr7jQz0A3teI=
226+
github.com/miparnisari/jitterbug v0.0.0-20260123191925-5442e9d50926/go.mod h1:wJ0MaDbnqNGatytpnTRAm4Y/U4xMzIf4sGNCeynJZto=
227227
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ=
228228
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
229229
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ require (
7171
github.com/jzelinskie/stringz v0.0.3
7272
github.com/lib/pq v1.10.9
7373
github.com/lithammer/fuzzysearch v1.1.8
74-
github.com/lthibault/jitterbug v2.0.0+incompatible
7574
github.com/mattn/go-isatty v0.0.20
7675
github.com/maypok86/otter/v2 v2.2.1
76+
github.com/miparnisari/jitterbug v0.0.0-20260123191925-5442e9d50926
7777
github.com/mostynb/go-grpc-compression v1.2.3
7878
github.com/muesli/mango-cobra v1.3.0
7979
github.com/muesli/roff v0.1.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,8 +1370,6 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
13701370
github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
13711371
github.com/lithammer/fuzzysearch v1.1.8 h1:/HIuJnjHuXS8bKaiTMeeDlW2/AyIWk2brx1V8LFgLN4=
13721372
github.com/lithammer/fuzzysearch v1.1.8/go.mod h1:IdqeyBClc3FFqSzYq/MXESsS4S0FsZ5ajtkr5xPLts4=
1373-
github.com/lthibault/jitterbug v2.0.0+incompatible h1:qouq51IKzlMx25+15jbxhC/d79YyTj0q6XFoptNqaUw=
1374-
github.com/lthibault/jitterbug v2.0.0+incompatible/go.mod h1:2l7akWd27PScEs6YkjyUVj/8hKgNhbbQ3KiJgJtlf6o=
13751373
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
13761374
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
13771375
github.com/lyft/protoc-gen-star v0.6.0/go.mod h1:TGAoBVkt8w7MPG72TrKIu85MIdXwDuzJYeZuUPFPNwA=
@@ -1417,6 +1415,8 @@ github.com/mgechev/revive v1.12.0 h1:Q+/kkbbwerrVYPv9d9efaPGmAO/NsxwW/nE6ahpQaCU
14171415
github.com/mgechev/revive v1.12.0/go.mod h1:VXsY2LsTigk8XU9BpZauVLjVrhICMOV3k1lpB3CXrp8=
14181416
github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8/go.mod h1:mC1jAcsrzbxHt8iiaC+zU4b1ylILSosueou12R++wfY=
14191417
github.com/minio/c2goasm v0.0.0-20190812172519-36a3d3bbc4f3/go.mod h1:RagcQ7I8IeTMnF8JTXieKnO4Z6JCsikNEzj0DwauVzE=
1418+
github.com/miparnisari/jitterbug v0.0.0-20260123191925-5442e9d50926 h1:x6smVPDCc4p3j4qtG5qO1uNcsPH8hVWMr7jQz0A3teI=
1419+
github.com/miparnisari/jitterbug v0.0.0-20260123191925-5442e9d50926/go.mod h1:wJ0MaDbnqNGatytpnTRAm4Y/U4xMzIf4sGNCeynJZto=
14201420
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ=
14211421
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
14221422
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=

internal/datastore/crdb/pool/health.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"time"
88

99
"github.com/jackc/pgx/v5"
10-
"github.com/lthibault/jitterbug"
10+
"github.com/miparnisari/jitterbug"
1111
"github.com/prometheus/client_golang/prometheus"
1212
"golang.org/x/time/rate"
1313

@@ -63,7 +63,6 @@ func (t *NodeHealthTracker) Poll(ctx context.Context, interval time.Duration) {
6363
// G404 use of non cryptographically secure random number generator is not concern here,
6464
// as it's used for jittering the interval for health checks.
6565
Source: rand.New(rand.NewSource(time.Now().Unix())),
66-
Min: interval,
6766
})
6867
defer ticker.Stop()
6968
for {

pkg/testutil/leakdetection.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ import (
77
func GoLeakIgnores() []goleak.Option {
88
return []goleak.Option{
99
goleak.IgnoreAnyFunction("go.opencensus.io/stats/view.(*worker).start"),
10-
goleak.IgnoreAnyFunction("github.com/lthibault/jitterbug.(*Ticker).loop"), // https://github.com/lthibault/jitterbug/pull/10
1110
}
1211
}

0 commit comments

Comments
 (0)