Skip to content

Commit

Permalink
add runOnTransientConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Jun 27, 2024
1 parent c2a1c97 commit e410794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/network/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class TopologyNetworkNode {
identify: identify(),
pubsub: gossipsub({
allowPublishToZeroTopicPeers: true,
runOnTransientConnection: true,
}),
dcutr: dcutr(),
},
Expand Down
4 changes: 3 additions & 1 deletion packages/network/src/relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export const createRelayNode = async () => {
services: {
autonat: autoNAT(),
identify: identify(),
pubsub: gossipsub(),
pubsub: gossipsub({
runOnTransientConnection: true,
}),
relay: circuitRelayServer(),
},
streamMuxers: [yamux()],
Expand Down

0 comments on commit e410794

Please sign in to comment.