From 097a79d5652d9bbccfdea015e0b27154cd7a82e7 Mon Sep 17 00:00:00 2001 From: Cody Shearer Date: Sat, 9 Mar 2024 18:39:59 -0500 Subject: [PATCH] fix: make redis integer frame signed The documentation for the Frame enum in framing.md claims the Redis protocol frame for an integer is unsigned, which doesn't match the protocol spec: https://redis.io/docs/reference/protocol-spec/#integers > This type is a CRLF-terminated string that represents a **signed**, base-10, 64-bit integer. see also tokio-rs/mini-redis#128 --- content/tokio/tutorial/framing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/tokio/tutorial/framing.md b/content/tokio/tutorial/framing.md index aff900de..7cd7efea 100644 --- a/content/tokio/tutorial/framing.md +++ b/content/tokio/tutorial/framing.md @@ -13,7 +13,7 @@ use bytes::Bytes; enum Frame { Simple(String), Error(String), - Integer(u64), + Integer(i64), Bulk(Bytes), Null, Array(Vec),