diff --git a/examples/libp2p-host/README.md b/examples/libp2p-host/README.md index ba59b7d4..1edee72c 100644 --- a/examples/libp2p-host/README.md +++ b/examples/libp2p-host/README.md @@ -59,7 +59,7 @@ import ( ctx := context.Background() // Put all this together -netw, err := swarm.NewNetwork(ctx, []ma.Multiaddr{maddr}, ident.ID(), ps, nil) +netw, err := swarm.NewNetwork(ctx, []ma.Multiaddr{maddr}, pid, ps, nil) if err != nil { panic(err) }