Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomrsantos committed Jun 5, 2024
1 parent f9a6ef0 commit 443015f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libp2p/protocols/pubsub/gossipsub.nim
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ method init*(g: GossipSub) =
trace "GossipSub handler leaks an error", exc = exc.msg, conn

g.handler = handler
g.codecs &= GossipSubCodec
g.codecs &= GossipSubCodec_11
g.codecs &= GossipSubCodec_10

method onNewPeer*(g: GossipSub, peer: PubSubPeer) =
Expand Down
2 changes: 1 addition & 1 deletion libp2p/protocols/pubsub/gossipsub/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import "../../.."/[peerid, multiaddress, utility]
export options, tables, sets

const
GossipSubCodec* = "/meshsub/1.1.0"
GossipSubCodec_11* = "/meshsub/1.1.0"
GossipSubCodec_10* = "/meshsub/1.0.0"

# overlay parameters
Expand Down
4 changes: 2 additions & 2 deletions tests/pubsub/utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ type

proc getPubSubPeer*(p: TestGossipSub, peerId: PeerId): PubSubPeer =
proc getConn(): Future[Connection] =
p.switch.dial(peerId, GossipSubCodec)
p.switch.dial(peerId, GossipSubCodec_11)

let pubSubPeer = PubSubPeer.new(peerId, getConn, nil, GossipSubCodec, 1024 * 1024)
let pubSubPeer = PubSubPeer.new(peerId, getConn, nil, GossipSubCodec_11, 1024 * 1024)
debug "created new pubsub peer", peerId

p.peers[peerId] = pubSubPeer
Expand Down

0 comments on commit 443015f

Please sign in to comment.