Update swagger to 0.20.1 (#8010)

* update swagger to 0.20.1

* fiw swagger version for validate
This commit is contained in:
Antoine GIRARD 2019-08-28 08:55:22 +02:00 committed by GitHub
parent e0f95d1545
commit 256b178176
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
100 changed files with 6410 additions and 1259 deletions

View file

@ -78,7 +78,14 @@ var (
)
// NewLimits returns the current soft limits of the process.
//
// Deprecated: use p.Limits() instead
func (p Proc) NewLimits() (ProcLimits, error) {
return p.Limits()
}
// Limits returns the current soft limits of the process.
func (p Proc) Limits() (ProcLimits, error) {
f, err := os.Open(p.path("limits"))
if err != nil {
return ProcLimits{}, err