mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🔇 减少启动日志监听端口耗时
This commit is contained in:
parent
d1995bda5c
commit
e11886923c
1 changed files with 0 additions and 2 deletions
|
|
@ -85,7 +85,6 @@ func Serve(fastMode bool) {
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
now := time.Now()
|
|
||||||
ln, err := net.Listen("tcp", host+":"+util.ServerPort)
|
ln, err := net.Listen("tcp", host+":"+util.ServerPort)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
if !fastMode {
|
if !fastMode {
|
||||||
|
|
@ -105,7 +104,6 @@ func Serve(fastMode bool) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
util.ServerPort = port
|
util.ServerPort = port
|
||||||
logging.LogInfof("listen port elapsed [%dms]", time.Since(now).Milliseconds())
|
|
||||||
|
|
||||||
pid := fmt.Sprintf("%d", os.Getpid())
|
pid := fmt.Sprintf("%d", os.Getpid())
|
||||||
if !fastMode {
|
if !fastMode {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue