Skip to content

Commit

Permalink
Merge pull request #15739 from MinaProtocol/brian/ignore-peerlist-whi…
Browse files Browse the repository at this point in the history
…tespace

ignore any leading/trailing whitespace in the peerlist
  • Loading branch information
rbonichon authored Jun 14, 2024
2 parents 8d45fa9 + ab901fc commit 6de36cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/mina_net2/multiaddr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ let valid_as_peer t =

let of_file_contents contents : t list =
String.split ~on:'\n' contents
|> List.map ~f:String.strip
|> List.filter ~f:(fun s ->
if valid_as_peer s then true
else if String.is_empty s then false
Expand Down

0 comments on commit 6de36cf

Please sign in to comment.