AddUniversalFlags parse the flags
(fs *pflag.FlagSet)
| 46 | |
| 47 | // AddUniversalFlags parse the flags |
| 48 | func (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 | } |