Explorar o código

add doc about timeout

vcptr %!s(int64=6) %!d(string=hai) anos
pai
achega
fcb3896a33
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      infra/control/api.go

+ 1 - 0
infra/control/api.go

@@ -32,6 +32,7 @@ func (c *ApiCommand) Description() Description {
 			"\tLoggerService.RestartLogger",
 			"\tStatsService.GetStats",
 			"\tStatsService.QueryStats",
+			"API calls in this command have a timeout to the server of 3 seconds.",
 			"Examples:",
 			"v2ctl api --server=127.0.0.1:8080 LoggerService.RestartLogger '' ",
 			"v2ctl api --server=127.0.0.1:8080 StatsService.QueryStats 'pattern: \"\" reset: false'",