all: Use own automaxprocs package that doesn't log (ref #9436) (#9437)

### Purpose

🤫
This commit is contained in:
Jakob Borg
2024-02-27 13:05:19 +01:00
committed by GitHub
parent aa559bf496
commit 07a9fa2dbd
20 changed files with 37 additions and 22 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ import (
"sync/atomic"
"time"
_ "github.com/syncthing/syncthing/lib/automaxprocs"
"github.com/syncthing/syncthing/lib/protocol"
_ "go.uber.org/automaxprocs"
)
type result struct {
@@ -158,7 +158,7 @@ func saveCert(priv interface{}, derBytes []byte) {
os.Exit(1)
}
keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o600)
if err != nil {
fmt.Println(err)
os.Exit(1)