Skip to content

Commit 122c2af

Browse files
authored
Merge pull request #253 from 1261385937/little_convenient
timeout from seconds to milliseconds
2 parents 4a186a8 + f065736 commit 122c2af

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)