MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / AddUniversalFlags

Method AddUniversalFlags

pkg/server/options/server_run_options.go:48–55  ·  view source on GitHub ↗

AddUniversalFlags parse the flags

(fs *pflag.FlagSet)

Source from the content-addressed store, hash-verified

46
47// AddUniversalFlags parse the flags
48func (s *ServerRunOptions) AddUniversalFlags(fs *pflag.FlagSet) {
49 // Note: the weird ""+ in below lines seems to be the only way to get gofmt to
50 // arrange these text blocks sensibly. Grrr.
51
52 fs.IntVar(&s.MaxRequestsInFlight, "max-requests-inflight", s.MaxRequestsInFlight, ""+
53 "The maximum number of non-mutating requests in flight at a given time. When the server exceeds this, "+
54 "it rejects requests. Zero for no limit.")
55}

Callers 1

AddFlagsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected