From a18380b3fcca2ac082faa477497c87e0b503a660 Mon Sep 17 00:00:00 2001 From: suxb201 Date: Sun, 3 Jul 2022 21:51:19 +0800 Subject: [PATCH] add some annotation --- internal/rdb/structure/length.go | 2 +- internal/rdb/types/interface.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rdb/structure/length.go b/internal/rdb/structure/length.go index 628d50c..e62543f 100644 --- a/internal/rdb/structure/length.go +++ b/internal/rdb/structure/length.go @@ -11,7 +11,7 @@ const ( RDB6ByteLen = 0 // RDB_6BITLEN RDB14ByteLen = 1 // RDB_14BITLEN len32or64Bit = 2 - lenSpecial = 3 + lenSpecial = 3 // RDB_ENCVAL RDB32ByteLen = 0x80 RDB64ByteLen = 0x81 ) diff --git a/internal/rdb/types/interface.go b/internal/rdb/types/interface.go index aae14a9..ecfc9d1 100644 --- a/internal/rdb/types/interface.go +++ b/internal/rdb/types/interface.go @@ -28,7 +28,7 @@ const ( rdbTypeList = 1 rdbTypeSet = 2 rdbTypeZSet = 3 - rdbTypeHash = 4 + rdbTypeHash = 4 // RDB_TYPE_HASH rdbTypeZSet2 = 5 // ZSET version 2 with doubles stored in binary. rdbTypeModule = 6 // RDB_TYPE_MODULE rdbTypeModule2 = 7 // RDB_TYPE_MODULE2 Module value with annotations for parsing without the generating module being loaded.