Revert "Merge pull request #2027 from bingoohuang/master"

Need to revert because docker image build failed. The docker apk package only has go 1.15.
This commit is contained in:
Chris Lu
2021-04-30 03:36:15 -07:00
parent 84312e6799
commit d74cdf0115
4 changed files with 28 additions and 18 deletions

View File

@@ -1,12 +1,12 @@
//go:generate statik -src=./static
// install this first "go get github.com/rakyll/statik"
package main
import (
"embed"
"fmt"
weed_server "github.com/chrislusf/seaweedfs/weed/server"
flag "github.com/chrislusf/seaweedfs/weed/util/fla9"
"io"
"io/fs"
"math/rand"
"os"
"strings"
@@ -35,13 +35,6 @@ func setExitStatus(n int) {
exitMu.Unlock()
}
//go:embed static
var static embed.FS
func init() {
weed_server.StaticFS, _ = fs.Sub(static, "static")
}
func main() {
glog.MaxSize = 1024 * 1024 * 32
rand.Seed(time.Now().UnixNano())