From 0e6fe269754394a9dd3d6462036fb0f32b5dc065 Mon Sep 17 00:00:00 2001 From: Kwuaint <34888408+kwuaint@users.noreply.github.com> Date: Fri, 16 Apr 2021 11:43:18 +0800 Subject: [PATCH] Remove the usless commented code Remove the usless commented code --- lotuspond/spawn.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lotuspond/spawn.go b/lotuspond/spawn.go index ce01b115e..9085bc24a 100644 --- a/lotuspond/spawn.go +++ b/lotuspond/spawn.go @@ -142,11 +142,6 @@ func (api *api) Spawn() (nodeInfo, error) { api.runningLk.Lock() api.running[id].meta.State = NodeStopped api.runningLk.Unlock() - - //logfile.Close() - //errlogfile.Close() - - //close(mux.stop) }, } api.runningLk.Unlock() @@ -221,11 +216,6 @@ func (api *api) SpawnStorage(fullNodeRepo string) (nodeInfo, error) { api.runningLk.Lock() api.running[id].meta.State = NodeStopped api.runningLk.Unlock() - - //logfile.Close() - //errlogfile.Close() - - //close(mux.stop) }, } api.runningLk.Unlock() @@ -272,11 +262,6 @@ func (api *api) RestartNode(id int32) (nodeInfo, error) { api.runningLk.Lock() api.running[id].meta.State = NodeStopped api.runningLk.Unlock() - - //logfile.Close() - //errlogfile.Close() - - //close(mux.stop) } nd.meta.State = NodeRunning