请求超时时间

This commit is contained in:
许晓东
2021-11-13 23:11:24 +08:00
parent 07f6158871
commit 0f493b0751
7 changed files with 21 additions and 19 deletions

View File

@@ -19,7 +19,7 @@ import org.apache.kafka.common.utils.Time
* */
class KafkaConsole(config: KafkaConfig) {
protected val timeoutMs: Int = 3000
protected val timeoutMs: Int = config.getRequestTimeoutMs
protected def withAdminClient(f: Admin => Any): Any = {