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

refactor(ipfs2/main) rm exit

parent ad5ad912
......@@ -304,17 +304,3 @@ func handleInterrupt() {
}
}()
}
func exit(code int) {
if u.Debug {
pprof.StopCPUProfile()
ofi.Close()
err := writeHeapProfileToFile()
if err != nil {
log.Critical(err)
}
}
os.Exit(code)
}
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