Commit 5e621980 authored by George Hotz's avatar George Hotz

only do the env lookup on non mips

parent 751fbcde
......@@ -37,14 +37,14 @@ func main() {
defer pprof.StopCPUProfile()
}
newNodeUrl, setNewNodeUrl := os.LookupEnv("NODE")
if setNewNodeUrl {
fmt.Println("override node url", newNodeUrl)
oracle.SetNodeUrl(newNodeUrl)
}
// non mips
if len(os.Args) > 1 {
newNodeUrl, setNewNodeUrl := os.LookupEnv("NODE")
if setNewNodeUrl {
fmt.Println("override node url", newNodeUrl)
oracle.SetNodeUrl(newNodeUrl)
}
pkw := oracle.PreimageKeyValueWriter{}
pkwtrie := trie.NewStackTrie(pkw)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment