From f065736423ca4c1075a3031aac1aac481dea6048 Mon Sep 17 00:00:00 2001 From: wangwei <1261385937@qq.com> Date: Sun, 27 Nov 2022 20:56:14 +0800 Subject: [PATCH] timeout from seconds to milliseconds --- clickhouse/client.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clickhouse/client.h b/clickhouse/client.h index 452226d9..e35fcb65 100644 --- a/clickhouse/client.h +++ b/clickhouse/client.h @@ -87,8 +87,8 @@ struct ClientOptions { DECLARE_FIELD(tcp_nodelay, bool, TcpNoDelay, true); /// Connection socket timeout. If the timeout is set to zero then the operation will never timeout. - DECLARE_FIELD(connection_recv_timeout, std::chrono::seconds, SetConnectionRecvTimeout, std::chrono::seconds(0)); - DECLARE_FIELD(connection_send_timeout, std::chrono::seconds, SetConnectionSendTimeout, std::chrono::seconds(0)); + DECLARE_FIELD(connection_recv_timeout, std::chrono::milliseconds, SetConnectionRecvTimeout, std::chrono::milliseconds(0)); + DECLARE_FIELD(connection_send_timeout, std::chrono::milliseconds, SetConnectionSendTimeout, std::chrono::milliseconds(0)); /** It helps to ease migration of the old codebases, which can't afford to switch * to using ColumnLowCardinalityT or ColumnLowCardinality directly,