Commit d72af9c9 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

refactor(ipfs2/main) return err

parent 9268bdd5
......@@ -269,7 +269,7 @@ func getConfig(path string) (*config.Config, error) {
func writeHeapProfileToFile() error {
mprof, err := os.Create(heapProfile)
if err != nil {
log.Fatal(err)
return err
}
defer mprof.Close()
return pprof.WriteHeapProfile(mprof)
......
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