lib: More contextification (#6343)

This commit is contained in:
Simon Frei
2020-02-24 21:57:15 +01:00
committed by GitHub
parent 7b8622c2e9
commit f0e33d052a
15 changed files with 138 additions and 42 deletions
+2 -1
View File
@@ -7,6 +7,7 @@
package syncthing
import (
"context"
"crypto/tls"
"fmt"
"io"
@@ -179,7 +180,7 @@ func (a *App) startup() error {
}()
}
perf := ur.CpuBench(3, 150*time.Millisecond, true)
perf := ur.CpuBench(context.Background(), 3, 150*time.Millisecond, true)
l.Infof("Hashing performance is %.02f MB/s", perf)
if err := db.UpdateSchema(a.ll); err != nil {