mirror of
https://github.com/vacp2p/dst-gossipsub-test-node-go.git
synced 2026-01-09 15:18:10 -05:00
Enabled floodPublish
This commit is contained in:
2
main.go
2
main.go
@@ -195,7 +195,7 @@ func main() {
|
||||
}
|
||||
fmt.Printf("Hostname: %s, ID: %s\n", hostname, h.ID())
|
||||
|
||||
ps, err := pubsub.NewGossipSub(ctx, h, pubsub.WithGossipSubParams(gsParams))
|
||||
ps, err := pubsub.NewGossipSub(ctx, h, pubsub.WithGossipSubParams(gsParams), pubsub.WithFloodPublish(true))
|
||||
if err != nil {
|
||||
println("Error starting pubsub protocol", err)
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user