2020-10-27 15:53:49 +08:00
|
|
|
diff --git a/src/sw/redis++/shards.cpp b/src/sw/redis++/shards.cpp
|
2024-10-19 06:31:30 +08:00
|
|
|
index fc58eea..ea57266 100644
|
2020-10-27 15:53:49 +08:00
|
|
|
--- a/src/sw/redis++/shards.cpp
|
|
|
|
+++ b/src/sw/redis++/shards.cpp
|
2024-10-19 06:31:30 +08:00
|
|
|
@@ -42,7 +42,7 @@ std::pair<Slot, Node> RedirectionError::_parse_error(const std::string &msg) con
|
2020-10-27 15:53:49 +08:00
|
|
|
auto host = msg.substr(space_pos + 1, colon_pos - space_pos - 1);
|
|
|
|
auto port = std::stoi(msg.substr(colon_pos + 1));
|
|
|
|
|
|
|
|
- return {slot, {host, port}};
|
|
|
|
+ return {static_cast<std::size_t>(slot), {host, port}};
|
2024-10-19 06:31:30 +08:00
|
|
|
} catch (const std::exception &) {
|
|
|
|
throw ProtoError("invalid redirection error message: " + msg);
|
2020-10-27 15:53:49 +08:00
|
|
|
}
|