Skip to content

Commit

Permalink
[coro_rpc] mark the paramater "path" of the function "file_exists" as…
Browse files Browse the repository at this point in the history
… const #373
  • Loading branch information
SPECIALTIGER-007 committed Jul 18, 2023
1 parent e66d26b commit 388c3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ylt/coro_rpc/impl/common_service.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct ssl_configure {
* @param path
* @return true if file exist, otherwise false
*/
inline bool file_exists(auto &path) {
inline bool file_exists(const auto &path) {
std::error_code ec;
if (!std::filesystem::is_directory(path, ec) &&
std::filesystem::exists(path, ec)) {
Expand Down

0 comments on commit 388c3bb

Please sign in to comment.