@@ -40,7 +40,7 @@ struct ClientOptions {
4040 // / Hostname of the server.
4141 DECLARE_FIELD (host, std::string, SetHost, std::string());
4242 // / Service port.
43- DECLARE_FIELD (port, int , SetPort, 9000 );
43+ DECLARE_FIELD (port, unsigned int , SetPort, 9000 );
4444
4545 // / Default database.
4646 DECLARE_FIELD (default_database, std::string, SetDefaultDatabase, " default" );
@@ -57,7 +57,7 @@ struct ClientOptions {
5757 // / Ping server every time before execute any query.
5858 DECLARE_FIELD (ping_before_query, bool , SetPingBeforeQuery, false );
5959 // / Count of retry to send request to server.
60- DECLARE_FIELD (send_retries, int , SetSendRetries, 1 );
60+ DECLARE_FIELD (send_retries, unsigned int , SetSendRetries, 1 );
6161 // / Amount of time to wait before next retry.
6262 DECLARE_FIELD (retry_timeout, std::chrono::seconds, SetRetryTimeout, std::chrono::seconds(5 ));
6363
@@ -68,7 +68,7 @@ struct ClientOptions {
6868 DECLARE_FIELD (tcp_keepalive, bool , TcpKeepAlive, false );
6969 DECLARE_FIELD (tcp_keepalive_idle, std::chrono::seconds, SetTcpKeepAliveIdle, std::chrono::seconds(60 ));
7070 DECLARE_FIELD (tcp_keepalive_intvl, std::chrono::seconds, SetTcpKeepAliveInterval, std::chrono::seconds(5 ));
71- DECLARE_FIELD (tcp_keepalive_cnt, int , SetTcpKeepAliveCount, 3 );
71+ DECLARE_FIELD (tcp_keepalive_cnt, unsigned int , SetTcpKeepAliveCount, 3 );
7272
7373#undef DECLARE_FIELD
7474};
0 commit comments