瀏覽代碼

add doc about timeout

vcptr 6 年之前
父節點
當前提交
fcb3896a33
共有 1 個文件被更改,包括 1 次插入0 次删除
  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'",