Skip to content

Commit

Permalink
load persistent peers map properly
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Apr 7, 2021
1 parent 35b74fa commit ad89fb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dot/network/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ func newHost(ctx context.Context, cfg *Config) (*host, error) {
return nil, err
}

for _, pp := range pps {
cm.persistentPeers.Store(pp.ID, struct{}{})
}

// format protocol id
pid := protocol.ID(cfg.ProtocolID)

Expand Down

0 comments on commit ad89fb6

Please sign in to comment.