File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 44
55toolchain go1.24.0
66
7- replace github.com/pancsta/cview => ../cview
7+ // replace github.com/pancsta/cview => ../cview
88
99require (
1010 code.rocketnine.space/tslocum/cbind v0.1.5
@@ -28,7 +28,7 @@ require (
2828 github.com/nats-io/nats.go v1.41.2
2929 github.com/nkall/compactnumber v1.1.1
3030 github.com/orsinium-labs/enum v1.4.0
31- github.com/pancsta/cview v1.5.16
31+ github.com/pancsta/cview v1.5.17
3232 github.com/patrickmn/go-cache v2.1.0+incompatible
3333 github.com/prometheus/client_golang v1.20.5
3434 github.com/reeflective/console v0.1.22
Original file line number Diff line number Diff line change @@ -355,6 +355,8 @@ github.com/opencontainers/runtime-spec v1.2.0/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/
355355github.com/openzipkin/zipkin-go v0.1.1 /go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8 =
356356github.com/orsinium-labs/enum v1.4.0 h1:3NInlfV76kuAg0kq2FFUondmg3WO7gMEgrPPrlzLDUM =
357357github.com/orsinium-labs/enum v1.4.0 /go.mod h1:Qj5IK2pnElZtkZbGDxZMjpt7SUsn4tqE5vRelmWaBbc =
358+ github.com/pancsta/cview v1.5.17 h1:myzbupJQqqugwjB3CfhPB7Q4wu1D6u1leRK8HD6ORZM =
359+ github.com/pancsta/cview v1.5.17 /go.mod h1:R6H3+/2zImmT9E1zXSJ2mZBulCfFw10NafJ5TugbjZE =
358360github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc =
359361github.com/patrickmn/go-cache v2.1.0+incompatible /go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ =
360362github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2DcNVpwGmV9E1BkGknEliJkfwQj0 =
Original file line number Diff line number Diff line change @@ -433,13 +433,15 @@ func newPsPeer(
433433
434434 // pick N random addrs
435435 pickedAddrs := []ma.Multiaddr {}
436+ pickedAddrsStr := []string {}
436437 for range n {
437438 if len (connAddrs ) == 0 {
438439 break
439440 }
440441 a := connAddrs [rand .Intn (len (connAddrs ))]
441- if ! slices .Contains (pickedAddrs , a ) {
442+ if ! slices .Contains (pickedAddrsStr , a . String () ) {
442443 pickedAddrs = append (pickedAddrs , a )
444+ pickedAddrsStr = append (pickedAddrsStr , a .String ())
443445 }
444446 }
445447
Original file line number Diff line number Diff line change @@ -1274,7 +1274,11 @@ func (t *Topic) ListMachinesState(e *am.Event) {
12741274 }
12751275 }
12761276
1277- retCh <- ret
1277+ select {
1278+ case retCh <- ret :
1279+ default :
1280+ t .log ("ListMachines: closed chan, dropping" )
1281+ }
12781282}
12791283
12801284func (t * Topic ) HeartbeatState (e * am.Event ) {
You can’t perform that action at this time.
0 commit comments