mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 04:26:35 +00:00
Upgrade NATS client
For compatibility with newer NATS streaming version https://github.com/openfaas/faas-netes/pull/819 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
committed by
Alex Ellis
parent
33c07e1ae8
commit
06a51373e2
2
gateway/vendor/github.com/prometheus/procfs/proc_cgroup.go
generated
vendored
2
gateway/vendor/github.com/prometheus/procfs/proc_cgroup.go
generated
vendored
@ -49,7 +49,7 @@ type Cgroup struct {
|
||||
func parseCgroupString(cgroupStr string) (*Cgroup, error) {
|
||||
var err error
|
||||
|
||||
fields := strings.Split(cgroupStr, ":")
|
||||
fields := strings.SplitN(cgroupStr, ":", 3)
|
||||
if len(fields) < 3 {
|
||||
return nil, fmt.Errorf("at least 3 fields required, found %d fields in cgroup string: %s", len(fields), cgroupStr)
|
||||
}
|
||||
|
Reference in New Issue
Block a user