From 832797cd430769822d2e563241725dc5029a37fc Mon Sep 17 00:00:00 2001 From: Shiyu Date: Sat, 11 Nov 2023 18:39:42 +0800 Subject: [PATCH] add const qualifier for `TcpClient::isReconnect()` method. --- evpp/TcpClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evpp/TcpClient.h b/evpp/TcpClient.h index bcdea6485..85ac649f7 100644 --- a/evpp/TcpClient.h +++ b/evpp/TcpClient.h @@ -217,7 +217,7 @@ class TcpClientEventLoopTmpl { } *reconn_setting = *setting; } - bool isReconnect() { + bool isReconnect() const { return reconn_setting && reconn_setting->cur_retry_cnt > 0; }