@@ -40,7 +40,7 @@ struct ClientOptions {
40
40
// / Hostname of the server.
41
41
DECLARE_FIELD (host, std::string, SetHost, std::string());
42
42
// / Service port.
43
- DECLARE_FIELD (port, int , SetPort, 9000 );
43
+ DECLARE_FIELD (port, unsigned int , SetPort, 9000 );
44
44
45
45
// / Default database.
46
46
DECLARE_FIELD (default_database, std::string, SetDefaultDatabase, " default" );
@@ -57,7 +57,7 @@ struct ClientOptions {
57
57
// / Ping server every time before execute any query.
58
58
DECLARE_FIELD (ping_before_query, bool , SetPingBeforeQuery, false );
59
59
// / 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 );
61
61
// / Amount of time to wait before next retry.
62
62
DECLARE_FIELD (retry_timeout, std::chrono::seconds, SetRetryTimeout, std::chrono::seconds(5 ));
63
63
@@ -68,7 +68,7 @@ struct ClientOptions {
68
68
DECLARE_FIELD (tcp_keepalive, bool , TcpKeepAlive, false );
69
69
DECLARE_FIELD (tcp_keepalive_idle, std::chrono::seconds, SetTcpKeepAliveIdle, std::chrono::seconds(60 ));
70
70
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 );
72
72
73
73
#undef DECLARE_FIELD
74
74
};
0 commit comments