优化gc性能

This commit is contained in:
bjdgyc
2021-05-29 18:11:50 +08:00
parent 0512ce197a
commit b704e089b6
5 changed files with 12 additions and 4 deletions

View File

@@ -21,6 +21,10 @@ import (
// 最后,感谢 github.com/pion/dtls 对golang生态做出的贡献
func startDtls() {
if !base.Cfg.ServerDTLS {
return
}
certificate, err := selfsign.GenerateSelfSigned()
if err != nil {
panic(err)