Merge pull request #6053 from kwuaint/patch-1

Remove the usless commented code
This commit is contained in:
Łukasz Magiera
2021-04-16 17:09:21 +02:00
committed by GitHub
-15
View File
@@ -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