调整框架的超时为 15秒

This commit is contained in:
eson
2023-07-12 10:22:03 +08:00
parent a4f429a528
commit 55eabd5cae
20 changed files with 47 additions and 14 deletions

View File

@@ -8,6 +8,7 @@ import (
svc2 "fusenapi/server/data-transfer/internal/svc"
"fusenapi/utils/auth"
"net/http"
"time"
"github.com/zeromicro/go-zero/core/conf"
"github.com/zeromicro/go-zero/rest"
@@ -20,6 +21,7 @@ func main() {
var c config2.Config
conf.MustLoad(*configFile, &c)
c.Timeout = int64(time.Second * 15)
server := rest.MustNewServer(c.RestConf, rest.WithCustomCors(auth.FsCors, func(w http.ResponseWriter) {