mirror of
https://github.com/restic/restic.git
synced 2026-11-12 22:40:04 +00:00
Limit memory usage, add several sync.Pool
This commit is contained in:
1 parent
575635753e
commit
f95788ed90
14 files changed
+277
-97
No files matched your search
@@ -135,6 +135,8 @@ func init() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
// defer profile.Start(profile.MemProfileRate(100000), profile.ProfilePath(".")).Stop()
|
||||
|
||||
log.SetOutput(os.Stdout)
|
||||
|
||||
opts.Repo = os.Getenv("KHEPRI_REPOSITORY")
|
||||
@@ -192,4 +194,6 @@ func main() {
|
||||
if err != nil {
|
||||
errx(1, "error executing command %q: %v", cmd, err)
|
||||
}
|
||||
|
||||
khepri.PoolAlloc()
|
||||
}
|
||||
Reference in new issue
Block a user