Skip to content

Commit f065736

Browse files
committed
timeout from seconds to milliseconds
1 parent 4a186a8 commit f065736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clickhouse/client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ struct ClientOptions {
8787
DECLARE_FIELD(tcp_nodelay, bool, TcpNoDelay, true);
8888

8989
/// Connection socket timeout. If the timeout is set to zero then the operation will never timeout.
90-
DECLARE_FIELD(connection_recv_timeout, std::chrono::seconds, SetConnectionRecvTimeout, std::chrono::seconds(0));
91-
DECLARE_FIELD(connection_send_timeout, std::chrono::seconds, SetConnectionSendTimeout, std::chrono::seconds(0));
90+
DECLARE_FIELD(connection_recv_timeout, std::chrono::milliseconds, SetConnectionRecvTimeout, std::chrono::milliseconds(0));
91+
DECLARE_FIELD(connection_send_timeout, std::chrono::milliseconds, SetConnectionSendTimeout, std::chrono::milliseconds(0));
9292

9393
/** It helps to ease migration of the old codebases, which can't afford to switch
9494
* to using ColumnLowCardinalityT or ColumnLowCardinality directly,

0 commit comments

Comments
 (0)