diff --git a/library/httpserver/httpserver.go b/library/httpserver/httpserver.go index 06967b5c..db436374 100644 --- a/library/httpserver/httpserver.go +++ b/library/httpserver/httpserver.go @@ -101,27 +101,5 @@ func setServerStatusFD(status string) { logger.Info("run cmd fail, p: %v, err: %v", serverStatusFdPath, err) return } - - return - - serverStatusFdPath = "/Users/erwin/SERVER_STATUS_FD" - file, err := os.OpenFile(serverStatusFdPath, os.O_RDWR|os.O_CREATE, 0666) - if err != nil { - logger.Info("OpenFile fail, p: %v, err: %v", serverStatusFdPath, err) - return - } - defer func() { - _ = file.Close() - }() - err = file.Truncate(0) - if err != nil { - logger.Info("file Truncate fail, p: %v, err: %v", serverStatusFdPath, err) - return - } - _, err = file.WriteString(status) - if err != nil { - logger.Info("file WriteString fail, p: %v, v: %v, err: %v", serverStatusFdPath, status, err) - return - } logger.Info("SetServerStatusFD success: %v", status) }