mirror of
https://github.com/restic/restic.git
synced 2026-10-12 21:17:12 +00:00
automatically adjust GOMAXPROCS when run in a cpu-constrained container
This commit is contained in:
1 parent
4087c3aff7
commit
f5d5e8fd0a
4 files changed
+22
-5
No files matched your search
+4
-4
@@ -9,13 +9,13 @@ import (
|
||||
"runtime"
|
||||
godebug "runtime/debug"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
_ "go.uber.org/automaxprocs"
|
||||
|
||||
"github.com/restic/restic/internal/debug"
|
||||
"github.com/restic/restic/internal/errors"
|
||||
"github.com/restic/restic/internal/options"
|
||||
"github.com/restic/restic/internal/restic"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/restic/restic/internal/errors"
|
||||
)
|
||||
|
||||
// cmdRoot is the base command when no other command has been specified.
|
||||
|
||||
Reference in new issue
Block a user