Skip to content

Commit

Permalink
fix: remove obsReqC with latest sdk and node
Browse files Browse the repository at this point in the history
Signed-off-by: bingyuyap <[email protected]>
  • Loading branch information
bingyuyap committed Nov 5, 2024
1 parent 1f87b4e commit cf4d642
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions fly/cmd/historical_uptime/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ func main() {
// Run supervisor.
components := p2p.DefaultComponents()
components.Port = p2pPort
obsvReqC := make(chan *gossipv1.ObservationRequest, 1024)

params, err := p2p.NewRunParams(
p2pBootstrap,
Expand All @@ -480,11 +479,6 @@ func main() {
p2p.WithComponents(components),
p2p.WithSignedObservationListener(obsvC),
p2p.WithSignedObservationBatchListener(batchObsvC),
// This is not supposed to be here. It's a bug in `p2p`.
// It is not subscribing to the control channel unless you are subscribing to observation requests or governor messages.
// It also needs to subscribe if the gst you pass in is subscribed to heartbeats.
p2p.WithObservationRequestListener(obsvReqC),

)
if err != nil {
logger.Fatal("Failed to create RunParams", zap.Error(err))
Expand Down
4 changes: 2 additions & 2 deletions fly/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
cloud.google.com/go/pubsub v1.33.0
firebase.google.com/go v3.13.0+incompatible
github.com/buger/goterm v1.0.4
github.com/certusone/wormhole/node v0.0.0-20241030181622-02f468f776f6
github.com/certusone/wormhole/node v0.0.0-20241105142137-7247a0fc0c96
github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203
github.com/ethereum/go-ethereum v1.10.26
github.com/ipfs/go-log/v2 v2.5.1
Expand All @@ -20,7 +20,7 @@ require (
github.com/prometheus/client_golang v1.18.0
github.com/prometheus/client_model v0.6.0
github.com/stretchr/testify v1.8.4
github.com/wormhole-foundation/wormhole/sdk v0.0.0-20241030181622-02f468f776f6
github.com/wormhole-foundation/wormhole/sdk v0.0.0-20241105142137-7247a0fc0c96
go.uber.org/zap v1.27.0
google.golang.org/api v0.126.0
google.golang.org/protobuf v1.32.0
Expand Down
8 changes: 4 additions & 4 deletions fly/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -819,10 +819,10 @@ github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMr
github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw=
github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA=
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA=
github.com/certusone/wormhole/node v0.0.0-20240820223034-c60e755908cf h1:VTANDF76BwrGS9JfF/Pktdt3QuNM8O+7MnTBpzZOvuE=
github.com/certusone/wormhole/node v0.0.0-20240820223034-c60e755908cf/go.mod h1:nynfZl9OpSSvYpolu16jbLRrTia5MeArcBNDP7B3Twc=
github.com/certusone/wormhole/node v0.0.0-20241030181622-02f468f776f6 h1:fAoceveu6AanS03NeLCmPRWZVHTD/IAz2LhpHy4cYCI=
github.com/certusone/wormhole/node v0.0.0-20241030181622-02f468f776f6/go.mod h1:nynfZl9OpSSvYpolu16jbLRrTia5MeArcBNDP7B3Twc=
github.com/certusone/wormhole/node v0.0.0-20241105142137-7247a0fc0c96 h1:FjCJA2zsLEldztcRO5u2XfOM/5Dbz5ywK5l0IdLuGPE=
github.com/certusone/wormhole/node v0.0.0-20241105142137-7247a0fc0c96/go.mod h1:nynfZl9OpSSvYpolu16jbLRrTia5MeArcBNDP7B3Twc=
github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk=
github.com/cespare/cp v0.1.0/go.mod h1:SOGHArjBr4JWaSDEVpWpo/hNg6RoKrls6Oh40hiwW+s=
github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
Expand Down Expand Up @@ -3177,10 +3177,10 @@ github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPyS
github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4=
github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI=
github.com/wormhole-foundation/wormhole/sdk v0.0.0-20220926172624-4b38dc650bb0/go.mod h1:Vg7Cbb370S+JihB+of1rWm9Aaxzf0GPPvKszPeSb7AE=
github.com/wormhole-foundation/wormhole/sdk v0.0.0-20240820223034-c60e755908cf h1:QDnA8nGXraYb0jNlQez6cmu3CHHQsh66IbCB66QFGw8=
github.com/wormhole-foundation/wormhole/sdk v0.0.0-20240820223034-c60e755908cf/go.mod h1:pE/jYet19kY4P3V6mE2+01zvEfxdyBqv6L6HsnSa5uc=
github.com/wormhole-foundation/wormhole/sdk v0.0.0-20241030181622-02f468f776f6 h1:QiSF3DiizE9d/j/o0oWtJ/8wyvP+fRs4UBi1fNOPKZc=
github.com/wormhole-foundation/wormhole/sdk v0.0.0-20241030181622-02f468f776f6/go.mod h1:pE/jYet19kY4P3V6mE2+01zvEfxdyBqv6L6HsnSa5uc=
github.com/wormhole-foundation/wormhole/sdk v0.0.0-20241105142137-7247a0fc0c96 h1:dfl0jWVD1g4MneGeOg0XqWI/6m5nISIJh6/SBg/vb0Y=
github.com/wormhole-foundation/wormhole/sdk v0.0.0-20241105142137-7247a0fc0c96/go.mod h1:pE/jYet19kY4P3V6mE2+01zvEfxdyBqv6L6HsnSa5uc=
github.com/wormhole-foundation/wormhole/wormchain v0.0.0-20221107132100-09459fcf9e67 h1:iVsZIhYCcQ4yDHCbGNHxc2gLg+yu+tElTkYVG2y2YlM=
github.com/wormhole-foundation/wormhole/wormchain v0.0.0-20221107132100-09459fcf9e67/go.mod h1:6P3jcx5ZqwQ5grCAjbJhDOQLiNM5oZLKP7uh2AQZYOA=
github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208/go.mod h1:IotVbo4F+mw0EzQ08zFqg7pK3FebNXpaMsRy2RT+Ees=
Expand Down

0 comments on commit cf4d642

Please sign in to comment.