Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/redis/connection.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _parse_ipv4(host: String) raises -> InlineArray[UInt8, 4]:
i += 1
if idx != 4:
raise Error("redis: invalid IPv4 host '" + host + "'")
return octets
return octets^


struct Connection(Movable):
Expand Down Expand Up @@ -198,7 +198,7 @@ struct Connection(Movable):
send_flags = Int32(0)
while sent < total:
var n = external_call["send", Int](
self.fd, ptr + sent, total - sent, send_flags
self.fd, ptr.unsafe_offset(sent), total - sent, send_flags
)
if n <= 0:
# A failed write leaves the connection unusable; close it so a
Expand Down
Loading