@@ -39,7 +39,7 @@ struct ClientOptions {
39
39
// / Hostname of the server.
40
40
DECLARE_FIELD (host, std::string, SetHost, std::string());
41
41
// / Service port.
42
- DECLARE_FIELD (port, int , SetPort, 9000 );
42
+ DECLARE_FIELD (port, unsigned int , SetPort, 9000 );
43
43
44
44
// / Default database.
45
45
DECLARE_FIELD (default_database, std::string, SetDefaultDatabase, " default" );
@@ -56,7 +56,7 @@ struct ClientOptions {
56
56
// / Ping server every time before execute any query.
57
57
DECLARE_FIELD (ping_before_query, bool , SetPingBeforeQuery, false );
58
58
// / Count of retry to send request to server.
59
- DECLARE_FIELD (send_retries, int , SetSendRetries, 1 );
59
+ DECLARE_FIELD (send_retries, unsigned int , SetSendRetries, 1 );
60
60
// / Amount of time to wait before next retry.
61
61
DECLARE_FIELD (retry_timeout, std::chrono::seconds, SetRetryTimeout, std::chrono::seconds(5 ));
62
62
@@ -67,7 +67,7 @@ struct ClientOptions {
67
67
DECLARE_FIELD (tcp_keepalive, bool , TcpKeepAlive, false );
68
68
DECLARE_FIELD (tcp_keepalive_idle, std::chrono::seconds, SetTcpKeepAliveIdle, std::chrono::seconds(60 ));
69
69
DECLARE_FIELD (tcp_keepalive_intvl, std::chrono::seconds, SetTcpKeepAliveInterval, std::chrono::seconds(5 ));
70
- DECLARE_FIELD (tcp_keepalive_cnt, int , SetTcpKeepAliveCount, 3 );
70
+ DECLARE_FIELD (tcp_keepalive_cnt, unsigned int , SetTcpKeepAliveCount, 3 );
71
71
72
72
#undef DECLARE_FIELD
73
73
};
0 commit comments