diff options
Diffstat (limited to 'internal/gitaly/config/cgroups/cgroups.go')
-rw-r--r-- | internal/gitaly/config/cgroups/cgroups.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/internal/gitaly/config/cgroups/cgroups.go b/internal/gitaly/config/cgroups/cgroups.go index 935a1a565..00fb9f45e 100644 --- a/internal/gitaly/config/cgroups/cgroups.go +++ b/internal/gitaly/config/cgroups/cgroups.go @@ -22,22 +22,6 @@ type Config struct { Memory Memory `toml:"memory"` } -// FallbackToOldVersion translates the old format of cgroups into the new -// format. -func (c *Config) FallbackToOldVersion() { - if c.Repositories.Count == 0 { - c.Repositories.Count = c.Count - - if c.Repositories.MemoryBytes == 0 && c.Memory.Enabled { - c.Repositories.MemoryBytes = c.Memory.Limit - } - - if c.Repositories.CPUShares == 0 && c.CPU.Enabled { - c.Repositories.CPUShares = c.CPU.Shares - } - } -} - // Repositories configures cgroups to be created that are isolated by repository. type Repositories struct { // Count is the number of cgroups that will be created for repository-level isolation |