Skip to content

Commit

Permalink
fly: use the network_consts values
Browse files Browse the repository at this point in the history
  • Loading branch information
panoel committed Jun 10, 2024
1 parent a1f00bf commit 276649f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fly/cmd/fly/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ func loadEnvVars() {
if err != nil {
log.Fatal("Error loading .env file")
}
p2pNetworkID = verifyEnvVar("P2P_NETWORK_ID")
p2pBootstrap = verifyEnvVar("P2P_BOOTSTRAP")
port, err := strconv.ParseUint(verifyEnvVar("P2P_PORT"), 10, 32)
if err != nil {
log.Fatal("Error parsing P2P_PORT")
Expand All @@ -142,6 +140,8 @@ func verifyEnvVar(key string) string {

func main() {
loadEnvVars()
p2pNetworkID = p2p.MainnetNetworkId
p2pBootstrap = p2p.MainnetBootstrapPeers

lvl, err := ipfslog.LevelFromString(logLevel)
if err != nil {
Expand Down

0 comments on commit 276649f

Please sign in to comment.